Class DirectoryScanner
Contains static methods for working with directory
Inheritance
object
DirectoryScanner
Namespace: BuildSystem.Utils.DirectoryHelper
Assembly: BuildSystem.Utils.dll
Syntax
public class DirectoryScanner : Object
Constructors
DirectoryScanner()
Declaration
public DirectoryScanner()
Methods
GetAllFilePaths(List<string>)
Returns paths to all files which fit one of the mask
Declaration
public static List<string> GetAllFilePaths(List<string> pathMasks)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<><string> | pathMasks | Mask of directory |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<><string> | Paths |
GetAllFilePaths(string)
Returns paths to all files in current directory and its subdirectories
Declaration
public static List<string> GetAllFilePaths(string scanDir)
Parameters
Type | Name | Description |
---|---|---|
string | scanDir | Directory to scan |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<><string> | List of paths to exist files |
GetAllFolderPaths(string)
Returns paths to all directories in current directory and its subdirectories
Declaration
public static List<string> GetAllFolderPaths(string scanDir)
Parameters
Type | Name | Description |
---|---|---|
string | scanDir | Directory to scan |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<><string> | List of paths to exist files |