Метод | Описание | |
---|---|---|
Combine ( string firstPart, string secondPart ) : string | ||
CopyFolder ( string fromDirectory, string toDirectory ) : void |
Copies the folder.
|
|
CreateDirectoryIfDoesNotExist ( string directoryPath ) : void | ||
DeleteFileOrDirectory ( string path ) : void |
Deletes the file or directory.
|
|
DeleteFilesOrDirectories ( IEnumerable |
Deletes the files or directories.
|
|
FileExists ( string localPath ) : bool | ||
FilenamesInDirectory ( string pathToFolder, string searchPattern, SearchOption searchOption ) : IEnumerable |
||
FolderExists ( string pathToFolder ) : bool | ||
GetChildDirectoriesRecursively ( string directory ) : IEnumerable |
Builds a list containing all the files under a specific directory
|
|
GetDirectoryNameFromPath ( string path ) : string | ||
GetEntityType ( string path ) : DiskEntity |
Gets the type of the entity, for instance, Folder, File, etc.
|
|
GetFilesInDirectoryRecursively ( string directory ) : IEnumerable |
Builds a list containing all the files under a specific directory
|
|
GetTempPath ( ) : string | ||
IsFile ( string path ) : bool |
Determines whether the specified path is a file.
|
|
IsFolder ( string path ) : bool |
Determines whether the specified path is a folder.
|
|
IsSubfolder ( string parentPath, string childPath ) : bool | ||
MakeRelativePath ( string fromPath, string toPath ) : string |
Creates a relative path from one file or folder to another.
|
|
ReadAllText ( string path ) : string |
Reads a text file from disk
|
|
SetFileReadOnly ( string filePath, bool isReadOnly ) : void |
Toggles the Read-Only attribute on a file
|
|
WriteTextToFile ( string path, string fileContents ) : void |
Writes a text file to disk
|
Метод | Описание | |
---|---|---|
areSameFolders ( |
||
isDirectory ( string path ) : bool | ||
isFileReadOnly ( string path ) : bool |
public Combine ( string firstPart, string secondPart ) : string | ||
firstPart | string | |
secondPart | string | |
Результат | string |
public CopyFolder ( string fromDirectory, string toDirectory ) : void | ||
fromDirectory | string | From directory. |
toDirectory | string | To directory. |
Результат | void |
public CreateDirectoryIfDoesNotExist ( string directoryPath ) : void | ||
directoryPath | string | |
Результат | void |
public DeleteFileOrDirectory ( string path ) : void | ||
path | string | The path to the file or directory. |
Результат | void |
public DeleteFilesOrDirectories ( IEnumerable |
||
paths | IEnumerable |
The paths. |
Результат | void |
public FileExists ( string localPath ) : bool | ||
localPath | string | |
Результат | bool |
public FilenamesInDirectory ( string pathToFolder, string searchPattern, SearchOption searchOption ) : IEnumerable |
||
pathToFolder | string | |
searchPattern | string | |
searchOption | SearchOption | |
Результат | IEnumerable |
public FolderExists ( string pathToFolder ) : bool | ||
pathToFolder | string | |
Результат | bool |
public GetChildDirectoriesRecursively ( string directory ) : IEnumerable |
||
directory | string | The parent directory. |
Результат | IEnumerable |
public GetDirectoryNameFromPath ( string path ) : string | ||
path | string | |
Результат | string |
public GetEntityType ( string path ) : DiskEntity | ||
path | string | The path to the item on disk. |
Результат | DiskEntity |
public GetFilesInDirectoryRecursively ( string directory ) : IEnumerable |
||
directory | string | The parent directory. |
Результат | IEnumerable |
public IsFile ( string path ) : bool | ||
path | string | The path to the disk entity. |
Результат | bool |
public IsFolder ( string path ) : bool | ||
path | string | The path with which to see if it's a folder. |
Результат | bool |
public IsSubfolder ( string parentPath, string childPath ) : bool | ||
parentPath | string | |
childPath | string | |
Результат | bool |
public MakeRelativePath ( string fromPath, string toPath ) : string | ||
fromPath | string | Contains the directory that defines the start of the relative path. |
toPath | string | Contains the path that defines the endpoint of the relative path. |
Результат | string |
public ReadAllText ( string path ) : string | ||
path | string | The path to the file to read. |
Результат | string |
public SetFileReadOnly ( string filePath, bool isReadOnly ) : void | ||
filePath | string | The path to the file. |
isReadOnly | bool | Whether or not to set the read only flag. |
Результат | void |
public WriteTextToFile ( string path, string fileContents ) : void | ||
path | string | The path of the file to write to. |
fileContents | string | The contents to write. |
Результат | void |