A utlity class for manipulating files.
copyContents(source:String, destination:String, excludes:Vector.<String>=null):Boolean | static Recursively copy files and subdirectories from source dir to destination dir. |
remove(dir:String):Boolean | static Recursively remove files and subdirectories from given dir. |
public static function copyContents(source:String, destination:String, excludes:Vector.<String>=null):Boolean
Recursively copy files and subdirectories from source dir to destination dir.
The containing directory is not copied, only its contents. The target directory and/or any subdirectories will be created as needed.
source:String | Full filepath to directory of files to be copied |
destination:String | Full filepath to target directory (does not need to be created before-hand) |
excludes:Vector.<String>=null | optional List of filepaths that should not be copied. Pattern matching is not supported.
|
returns Boolean | Boolean indicating success of copy |
public static function remove(dir:String):Boolean
Recursively remove files and subdirectories from given dir.
NOTE: empty directories are unable to be removed, only directories with files inside
The containing directory is also removed.
dir:String | |
returns Boolean | Boolean indicating success of removal |
lsdoc
2018 pixeldroid
https://github.com/pixeldroid/lsdoc |
programming pages theme v0.5.10 (https://github.com/pixeldroid/programming-pages) |
s |
focus search bar ( enter to select, ▲ / ▼ to change selection) |
g a |
go to api |
g e |
go to examples |
g g |
go to guides |
h |
toggle this help ( esc also exits) |