|
Joutsen v0.5.0+12-g5dd5f7e
|
A class representing a folder in the file system. More...
Public Member Functions | |
| LocalFolder (string path) | |
| Creates a new Folder instance for a path represented by a string. More... | |
| LocalFolder (LocalFilesystemPath path) | |
| Creates a new Folder instance for a path. More... | |
| 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 (LocalFilesystemPath 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< LocalFilesystemPath > | List (string searchPattern="*") |
| Lists the content of the folder. More... | |
| Set< LocalFolder > | ListFolders (string searchPattern="*") |
| Lists the folders contained in this folder. More... | |
| Set< LocalFile > | ListFiles (string searchPattern="*") |
| Lists the files contained in this folder. More... | |
| SCG.IEnumerable< LocalFilesystemPath > | Walk (string searchPattern="*") |
| Walks the filesystem returning one file or folder contained in this folder at a time. More... | |
| SCG.IEnumerable< LocalFolder > | WalkFolders (string searchPattern="*") |
| Walks the filesystem returning one subfolder of this folder at a time. More... | |
| SCG.IEnumerable< LocalFile > | WalkFiles (string searchPattern="*") |
| Walks the filesystem returning one file contained in this folder at a time. More... | |
| override bool | Equals (object obj) |
| Compares this instance to another one for equality. More... | |
| override int | GetHashCode () |
| Calculates the hash code for this instance. More... | |
| override string | ToString () |
| Creates a string representation of this folder instance. More... | |
| 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... | |
| LocalFolder | Parent [get] |
| The path of the parent folder. More... | |
| LocalFilesystemPath | Path [get] |
| The path of the folder. 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 can be written to in the filesystem. More... | |
Properties inherited from Joutsen.IO.Folder | |
| 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.
| Joutsen.IO.LocalFolder.LocalFolder | ( | string | path | ) |
Creates a new Folder instance for a path represented by a string.
| path | the path to the folder. Can be absolute or relative. |
| System.ArgumentNullException | if path is null |
| System.ArgumentException | if path is empty or leads to a file |
| Joutsen.IO.LocalFolder.LocalFolder | ( | LocalFilesystemPath | path | ) |
Creates a new Folder instance for a path.
| path | the path to the folder. Can be absolute or relative. |
| System.ArgumentNullException | if path is null |
| System.ArgumentException | if path is empty or leads to a file |
| Folder Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
| Folder Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
| void Joutsen.IO.LocalFolder.Create | ( | ) |
Creates the folder.
Implements Joutsen.IO.Folder.
| void Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
| override bool Joutsen.IO.LocalFolder.Equals | ( | object | obj | ) |
Compares this instance to another one for equality.
| obj | the instance to check for equality |
| override int Joutsen.IO.LocalFolder.GetHashCode | ( | ) |
Calculates the hash code for this instance.
| Set< LocalFilesystemPath > Joutsen.IO.LocalFolder.List | ( | string | searchPattern = "*" | ) |
Lists the content of the folder.
| searchPattern | can be used to restrict the result to files and folders matching this pattern |
Implements Joutsen.IO.Folder.
Lists the files contained in this folder.
| searchPattern | can be used to restrict the result to files matching this pattern |
Implements Joutsen.IO.Folder.
| Set< LocalFolder > Joutsen.IO.LocalFolder.ListFolders | ( | string | searchPattern = "*" | ) |
Lists the folders contained in this folder.
| searchPattern | can be used to restrict the result to folders matching this pattern |
Implements Joutsen.IO.Folder.
| Folder Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
| Folder Joutsen.IO.LocalFolder.MoveTo | ( | LocalFilesystemPath | 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 |
| Folder Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
| override string Joutsen.IO.LocalFolder.ToString | ( | ) |
Creates a string representation of this folder instance.
| SCG.IEnumerable< LocalFilesystemPath > Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
| SCG.IEnumerable< LocalFile > Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
| SCG.IEnumerable< LocalFolder > Joutsen.IO.LocalFolder.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 |
Implements Joutsen.IO.Folder.
|
get |
The time the folder was created.
Implements Joutsen.IO.Folder.
|
get |
Checks if the folder exists in the filesystem.
Implements Joutsen.IO.Folder.
|
get |
Checks if the folder can be written to in the filesystem.
Implements Joutsen.IO.Folder.
|
get |
The time the folder was last changed.
Implements Joutsen.IO.Folder.
|
get |
The name of the folder.
Implements Joutsen.IO.Folder.
|
get |
The path of the parent folder.
Implements Joutsen.IO.Folder.
|
get |
The path of the folder.
Implements Joutsen.IO.Folder.