|
Joutsen
v0.4.1
|
A class representing a folder in the file system. More...
Public Member Functions | |
| void | Create () |
| Creates the folder. More... | |
| Folder | CopyTo (String dstPath, bool recursive, bool overwrite=false, bool copyOnlyContents=false) |
| Copies the folder to a different path. More... | |
| Folder | CopyTo (FilesystemPath dstPath, bool recursive, bool overwrite=false, bool copyOnlyContents=false) |
| Copies the folder to a different path. More... | |
| Folder | MoveTo (string dstPath, bool keepFolder=false) |
| Moves the folder to a different location. More... | |
| Folder | MoveTo (FilesystemPath dstPath, bool keepFolder=false) |
| Moves the folder to a different location. More... | |
| void | Delete (bool recursive=false) |
| Deletes the folder from the filesystem. More... | |
| Set< FilesystemPath > | List (string searchPattern="*") |
| Lists the content of the folder. More... | |
| Set< Folder > | ListFolders (string searchPattern="*") |
| Lists the folders contained in this folder. More... | |
| Set< File > | ListFiles (string searchPattern="*") |
| Lists the files contained in this folder. More... | |
| SCG.IEnumerable< FilesystemPath > | Walk (string searchPattern="*") |
| Walks the filesystem returning one file or folder contained in this folder at a time. More... | |
| SCG.IEnumerable< Folder > | WalkFolders (string searchPattern="*") |
| Walks the filesystem returning one subfolder of this folder at a time. More... | |
| SCG.IEnumerable< File > | WalkFiles (string searchPattern="*") |
| Walks the filesystem returning one file contained in this folder at a time. More... | |
Properties | |
| String | Name [get] |
| The name of the folder. More... | |
| Folder | Parent [get] |
| The path of the parent folder. More... | |
| FilesystemPath | Path [get] |
| The path of the file. More... | |
| DateTime | LastModificationTime [get] |
| The time the folder was last changed. More... | |
| DateTime | CreationTime [get] |
| The time the folder was created. More... | |
| bool | Exists [get] |
| Checks if the folder exists in the filesystem. More... | |
| bool | IsWritable [get] |
| Checks if the folder is writable in the filesystem. More... | |
A class representing a folder in the file system.
| Folder Joutsen.System.IO.Folder.CopyTo | ( | String | dstPath, |
| bool | recursive, | ||
| bool | overwrite = false, |
||
| bool | copyOnlyContents = false |
||
| ) |
Copies the folder to a different path.
| dstPath | the path to copy the folder to |
| recursive | determines if subfolders should be copied as well |
| overwrite | determines if an existing folder at dstPath should be replaced |
Implemented in Joutsen.System.IO.TemporaryFolder, and Joutsen.System.IO.LocalFolder.
| Folder Joutsen.System.IO.Folder.CopyTo | ( | FilesystemPath | dstPath, |
| bool | recursive, | ||
| bool | overwrite = false, |
||
| bool | copyOnlyContents = false |
||
| ) |
Copies the folder to a different path.
| dstPath | the path to copy the folder to |
| recursive | determines if subfolders should be copied as well |
| overwrite | determines if an existing folder at dstPath should be replaced |
| System.ArgumentNullException | if dstPath is null |
Implemented in Joutsen.System.IO.TemporaryFolder, and Joutsen.System.IO.LocalFolder.
| void Joutsen.System.IO.Folder.Create | ( | ) |
Creates the folder.
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
| void Joutsen.System.IO.Folder.Delete | ( | bool | recursive = false | ) |
Deletes the folder from the filesystem.
| recursive | determines if the folder should only be deleted if it is empty or if files and subfolders should be deleted as well |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
| Set<FilesystemPath> Joutsen.System.IO.Folder.List | ( | string | searchPattern = "*" | ) |
Lists the content of the folder.
| searchPattern | can be used to restrict the result to files and folders matching this pattern |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
Lists the files contained in this folder.
| searchPattern | can be used to restrict the result to files matching this pattern |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
Lists the folders contained in this folder.
| searchPattern | can be used to restrict the result to folders matching this pattern |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
| Folder Joutsen.System.IO.Folder.MoveTo | ( | string | dstPath, |
| bool | keepFolder = false |
||
| ) |
Moves the folder to a different location.
| dstPath | the path to move the folder to |
| keepFolder | if keepFolder is false the content of the folder will be moved to the new location. If it is false the folder is moved into the folder defined by dstPath |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
| Folder Joutsen.System.IO.Folder.MoveTo | ( | FilesystemPath | dstPath, |
| bool | keepFolder = false |
||
| ) |
Moves the folder to a different location.
| dstPath | the path to move the folder to |
| keepFolder | if keepFolder is false the content of the folder will be moved to the new location. If it is false the folder is moved into the folder defined by dstPath |
| System.ArgumentNullException | if dstPath is null |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
| SCG.IEnumerable<FilesystemPath> Joutsen.System.IO.Folder.Walk | ( | string | searchPattern = "*" | ) |
Walks the filesystem returning one file or folder contained in this folder at a time.
| searchPattern | can be used to restrict the result to files and folders matching this pattern |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
| SCG.IEnumerable<File> Joutsen.System.IO.Folder.WalkFiles | ( | string | searchPattern = "*" | ) |
Walks the filesystem returning one file contained in this folder at a time.
| searchPattern | can be used to restrict the result to files matching this pattern |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
| SCG.IEnumerable<Folder> Joutsen.System.IO.Folder.WalkFolders | ( | string | searchPattern = "*" | ) |
Walks the filesystem returning one subfolder of this folder at a time.
| searchPattern | can be used to restrict the result to folders matching this pattern |
Implemented in Joutsen.System.IO.LocalFolder, and Joutsen.System.IO.TemporaryFolder.
|
get |
The time the folder was created.
|
get |
Checks if the folder exists in the filesystem.
|
get |
Checks if the folder is writable in the filesystem.
|
get |
The time the folder was last changed.
|
get |
The name of the folder.
|
get |
The path of the parent folder.
|
get |
The path of the file.
1.8.13