|
Joutsen v0.5.0+12-g5dd5f7e
|
A class representing a temporarily available folder in the filesystem. More...
Public Member Functions | |
| TemporaryFolder (bool createFolder=true, bool removeCreatedFolders=false) | |
| Creates a new folder located in the temporary folder of the local foldersystem. More... | |
| TemporaryFolder (String path, bool createFolder=true, bool removeCreatedFolders=false) | |
| Creates a new folder in the location and with the name specified by. More... | |
| TemporaryFolder (FilesystemPath path, bool createFolder=true, bool removeCreatedFolders=false) | |
| Creates a new folder in the location and with the name specified by. More... | |
| TemporaryFolder (Folder folder, bool createFolder=true, bool removeCreatedFolders=false) | |
| Creates a new folder in the location and with the name specified by. More... | |
| void | Create () |
| Creates the folder without content. 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... | |
| void | Dispose () |
| Removes the temporary folder if possible. 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... | |
Protected Member Functions | |
| TemporaryFolder (Folder folder, bool removeCreatedFolders) | |
| TemporaryFolder | CreateTemporaryFolder (Folder newFolder) |
| virtual void | Dispose (bool disposing) |
Protected Attributes | |
| Folder | folder |
| List< TemporaryFolder > | createdFolders |
Properties | |
| String | Name [get] |
| The name of the folder. More... | |
| FilesystemPath | Path [get] |
| The path of the folder. More... | |
| Folder | Parent [get] |
| The folder where the folder is located. 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 foldersystem. More... | |
| bool | IsWritable [get] |
| Checks if the folder is writable in the foldersystem. 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 temporarily available folder in the filesystem.
| Joutsen.IO.TemporaryFolder.TemporaryFolder | ( | bool | createFolder = true, |
| bool | removeCreatedFolders = false |
||
| ) |
Creates a new folder located in the temporary folder of the local foldersystem.
| create | determines if the folder should be created on the foldersystem together with the new instance |
| removeCreatedFolders | determines if all folders created by this instance should also be removed when this folder is removed |
| Joutsen.IO.TemporaryFolder.TemporaryFolder | ( | String | path, |
| bool | createFolder = true, |
||
| bool | removeCreatedFolders = false |
||
| ) |
Creates a new folder in the location and with the name specified by.
| path | in the local foldersystem. |
| path | the full path to the folder including its name |
| create | determines if the folder should be created on the foldersystem together with the new instance |
| removeCreatedFolders | determines if all folders created by this instance should also be removed when this folder is removed |
| ArgumentException | if the specified folder already exists |
| Joutsen.IO.TemporaryFolder.TemporaryFolder | ( | FilesystemPath | path, |
| bool | createFolder = true, |
||
| bool | removeCreatedFolders = false |
||
| ) |
Creates a new folder in the location and with the name specified by.
| path | in the local foldersystem. |
| path | the full path to the folder including its name |
| create | determines if the folder should be created on the foldersystem together with the new instance |
| removeCreatedFolders | determines if all folders created by this instance should also be removed when this folder is removed |
| ArgumentException | if the specified folder already exists |
| Joutsen.IO.TemporaryFolder.TemporaryFolder | ( | Folder | folder, |
| bool | createFolder = true, |
||
| bool | removeCreatedFolders = false |
||
| ) |
Creates a new folder in the location and with the name specified by.
| path. | |
| path | the full path to the folder including its name |
| create | determines if the folder should be created on the foldersystem together with the new instance |
| removeCreatedFolders | determines if all folders created by this instance should also be removed when this folder is removed |
| ArgumentException | if the specified folder already exists |
|
protected |
| Folder Joutsen.IO.TemporaryFolder.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.TemporaryFolder.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.TemporaryFolder.Create | ( | ) |
Creates the folder without content.
Implements Joutsen.IO.Folder.
|
protected |
| void Joutsen.IO.TemporaryFolder.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.
| void Joutsen.IO.TemporaryFolder.Dispose | ( | ) |
Removes the temporary folder if possible.
|
protectedvirtual |
| Set< FilesystemPath > Joutsen.IO.TemporaryFolder.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.
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.TemporaryFolder.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.TemporaryFolder.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.
| SCG.IEnumerable< FilesystemPath > Joutsen.IO.TemporaryFolder.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< File > Joutsen.IO.TemporaryFolder.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< Folder > Joutsen.IO.TemporaryFolder.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.
|
protected |
|
protected |
|
get |
The time the folder was created.
Implements Joutsen.IO.Folder.
|
get |
Checks if the folder exists in the foldersystem.
Implements Joutsen.IO.Folder.
|
get |
Checks if the folder is writable in the foldersystem.
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 folder where the folder is located.
Implements Joutsen.IO.Folder.
|
get |
The path of the folder.
Implements Joutsen.IO.Folder.