Method | Description | |
---|---|---|
CopyFile ( string name, IFileSystemDirectory target, string targetName ) : void |
Copy a file to a target directory
|
|
CreateBinaryFile ( string name ) : Stream |
Creates a new binary file in this directory
|
|
CreateDirectory ( string name ) : IFileSystemDirectory |
Creates a child directory if it does not exist yet
|
|
CreateTextFile ( string name ) : |
Creates a new text file with a text writer in this directory
|
|
Delete ( ) : void |
Deletes the directory
|
|
Delete ( bool>.Func |
Partially deletes the directory, based on a filter function
|
|
DeleteDirectory ( string name ) : void |
Deletes a child directory
|
|
DeleteFile ( string name ) : void |
Deletes a file from this directory
|
|
Exists ( string relativePath ) : bool |
Checks whether a file exists at the given relative path
|
|
GetChildDirectory ( string name ) : IFileSystemDirectory |
Gets interface for a given child directory
|
|
GetFileSize ( string relativePath ) : long |
Gets the size of the given file which lies in this directory subtree
|
|
GetLastModifiedDate ( string relativePath ) : System.DateTime |
Gets the last modification's date for a given file which lies in this directory subtree
|
|
GetRelativePath ( IFileSystemDirectory childDirectory ) : string |
Gets the relative path from this directory to another directory (in any depth) If the given argument is not a child of this directory, an ArgumentExceptionwill be thrown.
|
|
InvalidateCacheFileData ( ) : void | ||
ReadBinaryFile ( string relativePath ) : Stream |
Reads an existing binary file which lies in this directory subtree
|
|
ReadTextFile ( string relativePath ) : |
Reads an existing text file which lies in this directory subtree
|
|
Remake ( ) : void |
Remake the directory if it has been deleted
|
public CopyFile ( string name, IFileSystemDirectory target, string targetName ) : void | ||
name | string | Name of the file |
target | IFileSystemDirectory | Target file system directory |
targetName | string | Name (relative path) in the target directory |
return | void |
public CreateBinaryFile ( string name ) : Stream | ||
name | string | Name of the new file |
return | Stream |
public CreateDirectory ( string name ) : IFileSystemDirectory | ||
name | string | Name of the child directory |
return | IFileSystemDirectory |
public CreateTextFile ( string name ) : |
||
name | string | Name of the new file |
return |
public Delete ( bool>.Func |
||
filter | bool>.Func | Filter function, a relative path, and if it returns |
return | void |
public DeleteDirectory ( string name ) : void | ||
name | string | Name of the directory |
return | void |
public DeleteFile ( string name ) : void | ||
name | string | Name of the file |
return | void |
public Exists ( string relativePath ) : bool | ||
relativePath | string | Path to the file to check, relative to this directory |
return | bool |
public GetChildDirectory ( string name ) : IFileSystemDirectory | ||
name | string | Name of the child directory |
return | IFileSystemDirectory |
public GetFileSize ( string relativePath ) : long | ||
relativePath | string | The relative path to the file from this directory |
return | long |
public GetLastModifiedDate ( string relativePath ) : System.DateTime | ||
relativePath | string | The relative path to the file from this directory |
return | System.DateTime |
public GetRelativePath ( IFileSystemDirectory childDirectory ) : string | ||
childDirectory | IFileSystemDirectory | The child directory to get path to |
return | string |
public abstract InvalidateCacheFileData ( ) : void | ||
return | void |
public ReadBinaryFile ( string relativePath ) : Stream | ||
relativePath | string | The relative path to the file from this directory |
return | Stream |
public ReadTextFile ( string relativePath ) : |
||
relativePath | string | The relative path to the file from this directory |
return |