13 : this(fullPath,
OSPath.Empty)
23 : base(fullPath, root)
73 from fullPath in Directory.EnumerateDirectories(
FullPath)
80 public IEnumerable<FolderFile>
Files() =>
81 from fullPath in Directory.EnumerateFiles(
FullPath)
Represents an abstract base class for folder entries.
OSPath FullPath
Gets the full path of the folder entry.
OSPath Root
Gets the root path of the folder entry.
Represents a file within a folder in the unified path system.
Represents a folder in the file system and provides methods to interact with it.
Folder Up()
Returns a new Folder instance representing the parent directory.
IEnumerable< FolderFile > Files()
Enumerates the files in the folder.
FolderFile File(OSPath path)
Returns a FolderFile instance representing a file in the folder.
Folder Down(string folder)
Returns a new Folder instance representing a subdirectory.
Folder AsRoot()
Returns a new Folder instance with the current folder as the root.
bool Exists
Gets a value indicating whether the folder exists.
void Create()
Creates the folder if it does not already exist.
Folder(OSPath fullPath, OSPath root)
Initializes a new instance of the Folder class with the specified full path and root path.
IEnumerable< Folder > Folders()
Enumerates the subdirectories of the folder.
Folder(OSPath fullPath)
Initializes a new instance of the Folder class with the specified full path.
Represents an operating system path and provides methods for path conversion and manipulation.
OSPath Parent
Gets the parent directory of the path.