Méthode | Description | |
---|---|---|
CopyDirectory ( string sourcePath, string targetPath ) : bool |
Copies the specified source directory to the target path.
|
|
CreateDirectory ( string path ) : bool |
Creates the specified directory if it does not exist.
|
|
DeleteDirectory ( string path ) : bool |
Deletes the specified directory if it exists. Recursively deletes all sub directories and files in the specified directory. |
|
DeleteDirectoryContents ( string path ) : bool |
Deletes all files and subdirectories in the specified directory.
|
|
DirectoryExists ( string path ) : bool |
Gets a value indicating if the specified directory exists.
|
|
GetCountOfSubdirectories ( string path ) : int |
Gets a count indicating the number of subtirectories in the specified directory.
|
|
GetDirectoryPermission ( string path ) : IList |
Gets a directory permissions list
|
|
GetParentDirectory ( string path ) : |
Get parent directory if exists
|
|
IsDirectory ( string path ) : bool |
Gets a value indicating if the specified path is a directory.
|
|
SetDirectoryPermission ( string path, FileSystemRights permission ) : bool |
Set a directory permission
|
|
SetDirectoryPermissions ( string path, FileSystemRights permissions ) : bool |
Set a directory permission list
|
public CopyDirectory ( string sourcePath, string targetPath ) : bool | ||
sourcePath | string | The path to the source directory. |
targetPath | string | The path to the target directory. |
Résultat | bool |
public CreateDirectory ( string path ) : bool | ||
path | string | The path to the directory to create. |
Résultat | bool |
public DeleteDirectory ( string path ) : bool | ||
path | string | The path to the directory to delete. |
Résultat | bool |
public DeleteDirectoryContents ( string path ) : bool | ||
path | string | The path to the directory. |
Résultat | bool |
public DirectoryExists ( string path ) : bool | ||
path | string | The path to the directory. |
Résultat | bool |
public GetCountOfSubdirectories ( string path ) : int | ||
path | string | The path to the directory. |
Résultat | int |
public GetDirectoryPermission ( string path ) : IList |
||
path | string | The path to the directory. |
Résultat | IList |
public GetParentDirectory ( string path ) : |
||
path | string | Directory path. |
Résultat |
public IsDirectory ( string path ) : bool | ||
path | string | The path to validate as a directory. |
Résultat | bool |
public SetDirectoryPermission ( string path, FileSystemRights permission ) : bool | ||
path | string | The path to the directory. |
permission | FileSystemRights | Permission to set on directory. |
Résultat | bool |
public SetDirectoryPermissions ( string path, FileSystemRights permissions ) : bool | ||
path | string | The path to the directory. |
permissions | FileSystemRights | Permissions to set on directory. |
Résultat | bool |