Functions23 public, 1 private

Appends the specified file extension if not already present.
publicstringappendFileExtension
requiredstringfileName
requiredstringfileExtension
Returns the number of bytes in the specified file or folder.
publicnumericcalculateFileSize
requiredstringuri
booleanrecursetrue
Deletes the specified file. Returns if the file has been deleted. Will not throw any exception.
publicbooleandeleteFileIfExists
requiredstringfilePath
Detects and returns the joint in the provided path.
publicstringdetectJoint
requiredstring, string[]path
Copies the specified directory and its content.
publicstructdirectoryCopy
requiredstringsource
requiredstringdestination
structOPTIONS{}
optionstring, string[]filters.file[]
optionbooleanfilters.fileAllowRegExtrue
values within / / will be treated as regular expression, you may provide an array in an array to require a folder hierarchy, e.g.: { filters: { folder: [ [ "A", "B" ] ] } } will filter folder "B", when folder "B" is beneath folder "A"
optionstring, string[]filters.folder[]
optionbooleanfilters.folderAllowRegExtrue
maximum time difference of last modification in number of days
optionnumericfilters.maxAge0
optionbooleanrecursetrue
Creates the specified directory including any necessary but non-existent parent directories. Advantage over CF's directoryCreate: doesn't fail on existing folders and thus not affected by race conditions.
publicbooleandirectoryCreate
requiredstringpath
Filters the content of specified directory.
publicstructfilterDirectory
requiredstring, querydirectory
structOPTIONS{}
optionstring, string[]filters.file[]
optionbooleanfilters.fileAllowRegExtrue
values within / / will be treated as regular expression, you may provide an array in an array to require a folder hierarchy, e.g.: { filters: { folder: [ [ "A", "B" ] ] } } will filter folder "B", when folder "B" is beneath folder "A"
optionstring, string[]filters.folder[]
optionbooleanfilters.folderAllowRegExtrue
maximum time difference of last modification in number of days
optionnumericfilters.maxAge0
optionbooleanrecursetrue
publicbooleanfolderIsEmpty
requiredstringpath
booleanthrowExceptionfalse
Attempts to resolve the specified path.
publicstringgetRealPath
requiredstringpathToResolve
publicbooleanisDirectory
requiredanypath
Returns if the specified path is considered as already expanded. The path is checked against Windows and *NIX filesystem.
publicbooleanisExpandedPath
requiredstringpath
publicbooleanisFile
requiredstringpath
publicbooleanisSymbolicLink
requiredstringpath
Lists all files in the provided directory.
publicarraylistFiles
requiredstringdirectoryPath
booleanrecursefalse
"ASC", "DESC"sortASC
stringfilter*.*
Lists all files in the provided directory without following symbolic links.
publicarraylistFilesNoSymLink
requiredstringdirectoryPath
booleanrecursefalse
"ASC", "DESC"sortASC
stringfilter*.*
Lists all folders in the provided directory.
publicarraylistFolders
requiredstringdirectoryPath
booleanrecursefalse
"ASC", "DESC"sortASC
Determines the file extension of the provided file path.
publicstringgetFileExtension
File path that contains a file extension.
requiredstringfilePath
Inspects the provided URI for the specified file extensions.
publicbooleanhasFileExtension
requiredstringuri
case-insensitive
array, stringextension[]
Joins the provided paths.
publicstringjoinFilePaths
requiredanypath1
anypath2
Either forward slash or backward slash. Leave empty to detect automatically.
stringjoint
Parses the specified amount (bits or bytes) and unit and returns the converted amount in bytes.
publicnumericparseAsBytes
requiredanyvalue
Returns the path after going one directory up, e.g.: "/path/to/top" will return "/path/to"
publicstringpathUp
requiredstringpath
Removes a single file extension.
publicstringremoveFileExtension
requiredstringfileName
publicstringstringifyBytes
requiredanybytes
numericround2
"auto", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"unitauto
structOPTIONS{}
optionstringspace
optionarrayunits[]