IFileSystem Simulated filesystem using SharedObject.
This filesystem is 100% synchron. //TODO Current implementation still beta; certainly need optimization and refactoring to avoid duplicated code.
public function isDirectory(folder:String):Boolean
Returns true if passed-in folder is a valid directory
on filesystem.
folder | A fully qualified path |
public function createDirectory(folder:String):Boolean
Creates passed-in folder directory on filesystem.
Returns true if operation ends successfully.
folder | A fully qualified path |
public function deleteDirectory(folder:String):Boolean
Removes passed-in folder directory from filesystem.
All files / folders insides are also deleted.
Returns true if operation ends successfully.
folder | A fully qualified path |
public function renameDirectory(folder:String, newName:String):Boolean
Renames passed-in folder directory with new passed-in
newFolderName name.
Returns true if operation ends successfully.
folder | A fully qualified path |
public function isFile(path:String):Boolean
Returns true if passed-in path is a valid file
on filesystem.
path | A fully qualified file path |
public function renameFile(path:String, newName:String):Boolean
Renames passed-in path file with new passed-in
newName name.
Returns true if operation ends successfully.
path | A fully qualified file path |
newName | A fully qualified file path |
public function deleteFile(path:String):Boolean
Removes passed-in path file from filesystem.
Returns true if operation ends successfully.
path | A fully qualified file path |
public function readFile(path:String):StringReads file text content.
path | A full qualified filename |
File content or null if application can't read file.
public function writeToFile(data:String, path:String):BooleanWrites text data into file.
data | String to write in file |
path | ( optional ) A fully qualified path to the file you want to write. Default use application starting directory. |
public function appendToFile(data:String, path:String):BooleanAppends text data into file.
data | String to write in file |
path | A fully qualified path to the file you want to write. Default use application starting directory. |
public function isAvailable():BooleanDescription copied from FileSystem
Returns is filesystem is ready.
Only really use by SharedObject and Server filesystem.
isAvailable() in fever.app.context.abstract.IFileSystem
public function getTempDirectory():StringReturns user "temporary" directory from current system.
getTempDirectory() in fever.app.context.abstract.IFileSystem