BaseFileFS
abstract class BaseFileFS extends FSImpl
A basic filesystem type that stores files as files (revolutionary)
Each file call is translated into a root-relative path and passed to storage.
Properties
| protected | $fsmanager | from FSImpl |
Methods
Synchronizes the given folder's metadata with storage
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
FSImpl at line 49
abstract FSImpl
RefreshFile(File $file)
Synchronizes the given file's metadata with storage
in
FSImpl at line 52
abstract FSImpl
RefreshFolder(Folder $folder, bool $doContents = true)
Synchronizes the given folder's metadata with storage
in
FSImpl at line 58
abstract FSImpl
DeleteFolder(Folder $folder)
Deletes the given folder from disk
at line 24
FSImpl
ImportFile(File $file, InputPath $infile)
Creates a new file and imports its content
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
at line 34
FSImpl
WriteBytes(File $file, int $start, string $data)
Writes to the given file, possibly appending it
in
FSImpl at line 103
abstract FSImpl
RenameFile(File $file, string $name)
Renames a file to the given name
in
FSImpl at line 106
abstract FSImpl
RenameFolder(Folder $folder, string $name)
Renames a folder to the given name
at line 17
abstract protected string
GetFilePath(File $file)
No description
at line 60
protected BaseFileFS
ManualCopyFolder(Folder $folder, Folder $dest)
Helper function to emulate copying a folder by copying its contents manually