Functions14 public, 0 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
Detects and returns the joint in the provided path.
publicstringdetectJoint
requiredstring, string[]path
Copies the specified directory and its content.
publicstructdirectoryCopy
requiredstringsource
requiredstringdestination
structOPTIONS{}
Filters the content of specified directory.
publicanyfilterDirectory
requiredstring, querydirectory
structOPTIONS{}
optionstring, string[]filters.file[]
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[]
maximum time difference of last modification in number of days
optionnumericfilters.maxAge0
optionbooleanrecursetrue
Lists all files in the provided directory.
publicarraylistFiles
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
requiredanyuri
case-insensitive
anyextension[]
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
requirednumericbytes
numericround2
"auto", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"unitauto
structOPTIONS{}
optionarrayunits[]