FileUtils

public final CLASS
 

Class Description

A utlity class for manipulating files.

 

Listing

 

Methods

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.
 

Details

 

Methods

 

copyContents()
static

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:StringFull filepath to directory of files to be copied
destination:StringFull 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

 

remove()
static

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)