IFileSystem FileSystem using SWF Studio backend.
This filesystem is 100% synchron.
public function isDirectory(path:String):Boolean
Returns true if passed-in path is a valid directory
on filesystem.
path | A fully qualified path |
public function createDirectory(path:String):Boolean
Creates passed-in path directory on filesystem.
Returns true if operation ends successfully.
If any part of the directory path does not exist it will be created.
path | A fully qualified path |
public function deleteDirectory(path:String):Boolean
Removes passed-in path directory from filesystem.
All files insides directory are also deleted.
Returns true if operation ends successfully.
path | A fully qualified path |
public function renameDirectory(path:String, newName:String):Boolean
Renames passed-in path directory with new passed-in
newpath name.
Returns true if operation ends successfully.
path | 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(fullQualifiedFilename:String):StringReads file text content.
fullQualifiedFilename | 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 | A fully qualified path to the file you want to write. Default use application starting directory. |
true if process complete successfully.
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. |
true if process complete successfully.
public function getTempDirectory():StringReturns user "temporary" directory from current system.
getTempDirectory() in fever.app.context.abstract.IFileSystem