Native
class Native extends BaseFileFS
An Andromeda native filesystem stores only file content.
All folders and file/folder metadata is stored only in the database. The database is the authoritative record of what exists.
Properties
| protected | $fsmanager | from FSImpl |
Methods
Reads the exact number of desired bytes from the given file
Helper function to emulate copying a folder by copying its contents manually
Details
in
FSImpl at line 37
int|null
GetChunkSize()
Returns the preferred byte alignment of the filesystem.
Reads and writes should align to these boundaries for performance
in
FSImpl at line 40
protected FSManager
GetFSManager()
Returns a reference to the parent FS manager
in
FSImpl at line 46
protected ObjectDatabase
GetDatabase()
Returns a database reference
in
BaseFileFS at line 24
FSImpl
ImportFile(File $file, InputPath $infile)
Creates a new file and imports its content
in
BaseFileFS at line 19
FSImpl
CreateFile(File $file)
Creates an empty file on storage
in
BaseFileFS at line 49
FSImpl
DeleteFile(File $file)
Deletes the given file from storage
in
BaseFileFS at line 29
string
ReadBytes(File $file, int $start, int $length)
Reads the exact number of desired bytes from the given file
Throws an error if the read goes beyond the end of the file
in
BaseFileFS at line 34
FSImpl
WriteBytes(File $file, int $start, string $data)
Writes to the given file, possibly appending it
in
BaseFileFS at line 39
FSImpl
Truncate(File $file, int $length)
Truncates (changes size of) a file
in
BaseFileFS at line 44
FSImpl
CopyFile(File $file, File $dest)
Copies a file
at line 93
protected string
GetFilePath(File $file)
The path to a file is simply its ID, broken into a prefix
in
BaseFileFS at line 60
protected BaseFileFS
ManualCopyFolder(Folder $folder, Folder $dest)
Helper function to emulate copying a folder by copying its contents manually