SYSTEM ‐ originOS Files - Mistium/Origin-OS GitHub Wiki
Organisation
Files are stored in one massive array that is saved and loaded from local storage when the user loads originOS
Each file has 14 entries
Those entries consist of:
-
type:
- Represents the file type, indicated by its file extension (e.g., .osl, .icn, .txt).
-
name:
- A string representing the name of the file.
-
location:
- A file path indicating the location of the file.
-
data,
- this is the main file data, where osl scripts keep their actual program data, folders have an array of files that they contain and most files use this as the main data storage.
-
data2,
- in a folder this data field stores how many files are inside itself however, this may soon be unnecessary
-
x,
-
y:
- These are fields for various data associated with the file. Each field may store different data related to the file.
-
id:
- The identifier for the file, which could be used for referencing or accessing it.
-
created:
- A Unicode timestamp indicating when the file was created.
-
edited:
- A Unicode timestamp indicating when the file was last edited.
-
icon:
- The code for the file's icon, which is displayed when rendering the file.
-
size:
- Stores the size of the file and potentially any files it contains.
-
permissions:
- Stores the permissions needed to access this file by any application.
-
Uuid:
- A unique identifier for the system to use for each file (you don’t need to worry about this)