A wrapper object for the processing of relative file path.
Directory
00 Remarks
a local filesystem implementation for IFileSystemEnvironment
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Construct a directory object from the specific Dir path value. |
| FromLocalFileSystem | 1 | Create a directory object |
| GetFullPath | 1 | Gets the full path of the target file based on the path relative to this directory object. |
| IsAbsolutePath | 1 | Determined that the input file path is a absolute path or not? |
| CopyTo | 1 | 将当前的这个文件夹之中的内容拷贝到target目标文件夹 |
| GetRelativePath | 1 | get relative of the given file path that relative to current workspace dir |
| CreateDirectory | 1 | Creates a directory. |
| Close | 1 | Just do nothing for local filesystem |
| GetSubDirectories | 1 | |
| ToString | 1 | |
| Exists | 1 | |
| Delete | 1 | |
| OpenFile | 1 | |
| DeleteFile | 1 | |
| FileExists | 1 | |
| FileSize | 1 | |
| WriteText | 1 | |
| ReadAllText | 1 | |
| GetAllFiles | 1 | |
| FileModifyTime | 1 | |
| GetFiles | 1 | |
| EnumerateFiles | 1 |
03 Properties
04 Members
String, Boolean)Construct a directory object from the specific Dir path value.
| Name | Type | Description |
|---|---|---|
directory | String | Target directory path |
String)Create a directory object
this function will create target dir if it is not exists on your filesystem
| Name | Type | Description |
|---|---|---|
dir | String | - |
String)Gets the full path of the target file based on the path relative to this directory object.
the given input file should be inside current directory location, the file path start with prefix / will also be treated as the relative path inside current directory on unix platform, due to the reason of path string combine operation:
dir/file| Name | Type | Description |
|---|---|---|
file | String | The relative path of the target file, and this parameter is also compatible with absolute file path. (相对路径) |
String, Boolean)Determined that the input file path is a absolute path or not?
| Name | Type | Description |
|---|---|---|
file | String | - |
String, IProgress(Of String), Boolean, Boolean)将当前的这个文件夹之中的内容拷贝到target目标文件夹
| Name | Type | Description |
|---|---|---|
target | String | The directory path of target folder. |
String)get relative of the given file path that relative to current workspace dir
| Name | Type | Description |
|---|---|---|
file | String | - |
String)Creates a directory.
Exceptions: T:System.ArgumentException: The directory name is malformed. For example, it contains illegal characters or is only white space.
T:System.ArgumentNullException: directory is Nothing or an empty string.
T:System.IO.PathTooLongException: The directory name is too long.
T:System.NotSupportedException: The directory name is only a colon (:).
T:System.IO.IOException: The parent directory of the directory to be created is read-only
T:System.UnauthorizedAccessException: The user does not have permission to create the directory.
| Name | Type | Description |
|---|---|---|
junctionPoint | String | Name and location of the directory. |
Just do nothing for local filesystem
当前的这个文件夹对象的文件路径
it is the full name via the function FileSystem.GetDirectoryInfo()
String)String)String, FileMode, FileAccess)String)String, Boolean)String)String, String)String)String)String, String())String, String())