DirectoryInfo Module
Contains tasks to interact with DirectoryInfo
Functions and values
Function or value | Description |
Full Usage:
DirectoryInfo.containsFile fileInfo dir
Parameters:
FileInfo
-
The file to check for
dir : DirectoryInfo
-
The directory to search in
Returns: bool
|
|
Full Usage:
DirectoryInfo.copyRecursiveTo overwrite outputDir dir
Parameters:
bool
-
Flag to overwrite same files in target dir
outputDir : DirectoryInfo
-
The target directory to copy to
dir : DirectoryInfo
-
The source directory to copy from
Returns: string list
|
|
Full Usage:
DirectoryInfo.copyRecursiveToWithFilter overwrite filter outputDir dir
Parameters:
bool
-
Flag to overwrite same files in target dir
filter : DirectoryInfo -> FileInfo -> bool
-
The filter to use to filter the list of files
outputDir : DirectoryInfo
-
The target directory to copy to
dir : DirectoryInfo
-
The source directory to copy from
Returns: string list
|
|
Full Usage:
DirectoryInfo.ensure dir
Parameters:
DirectoryInfo
-
The directory to check
Modifiers: inline |
|
Full Usage:
DirectoryInfo.exists dir
Parameters:
DirectoryInfo
-
The directory to check for
Returns: bool
|
|
Full Usage:
DirectoryInfo.getFiles dir
Parameters:
DirectoryInfo
-
The directory to use
Returns: FileInfo[]
Modifiers: inline |
|
Full Usage:
DirectoryInfo.getMatchingFiles pattern dir
Parameters:
string
-
The glob pattern to use for search
dir : DirectoryInfo
-
The directory to use
Returns: FileInfo[]
|
|
Full Usage:
DirectoryInfo.getMatchingFilesRecursive pattern dir
Parameters:
string
-
The glob pattern to use for search
dir : DirectoryInfo
-
The directory to use
Returns: FileInfo[]
|
|
Full Usage:
DirectoryInfo.getSubDirectories dir
Parameters:
DirectoryInfo
-
The directory to use
Returns: DirectoryInfo[]
Modifiers: inline |
|
Full Usage:
DirectoryInfo.isSubfolderOf dir2 dir1
Parameters:
DirectoryInfo
-
The second directory to check for
dir1 : DirectoryInfo
-
The first directory to check for
Returns: bool
|
|
Full Usage:
DirectoryInfo.ofPath path
Parameters:
string
-
The path to use
Returns: DirectoryInfo
Modifiers: inline |
|
Full Usage:
DirectoryInfo.setReadOnly readOnly dir
Parameters:
bool
-
Flag to set directory to readonly or not.
dir : DirectoryInfo
-
The directory to set
|
|
Full Usage:
DirectoryInfo.setReadOnlyRecursive readOnly dir
Parameters:
bool
-
Flag to set directory to readonly or not.
dir : DirectoryInfo
-
The directory to set
|
|