FileSystem.FindDirectoryByName
Method | |
---|---|
Module | FileSystem |
Library | Core |
Action | Finds directory paths given a leaf directory name. |
Parameters | DirectoryName (string): The name of the directory to be found. This cannot contain path separators and therefore is always just the leaf node of the path (the deepest part of the path). NoteThe name can include wildcard characters ? and *. Case insensitive wildcards are supported only on Windows. NoteUnix NoteOn Windows, excluded paths can contain drive letters on Windows (e.g. C:\\), to skip scanning whole volumes. Ensure the exclude paths are complete paths starting from root. |
Return values | For each directory found:
|
Example | FileSystem.FindDirectoryByName(DirectoryName:"wibble", Fast:true); The above method call might find the following on relevant platforms: But it will never find these: @exclude = SELECT column1 AS Path FROM ( VALUES ("C:\\"), ("E:\\IgnoredFolder") ); FileSystem.FindDirectoryByName(DirectoryName:"wibble",Exclude:@exclude); |
Platforms |
|
Notes | This method searches all fixed disks, which is a resource expensive process and may take some time if Symbolic links are ignored on non-Windows OS. |