FileSystem
Namespace: TagBites.IO
Assembly: TagBites.IO.dll
Product: TagBites.IO v. 2.0.0
Represents the file system contains the procedures that are used to perform file, directory or file version operations.
public sealed class FileSystem : System.IDisposableInheritance: object → FileSystem
Constructors
Section titled “Constructors”FileSystem(IFileSystemOperations)
Section titled “FileSystem(IFileSystemOperations)”Initializes a new instance of the FileSystem class for a specified file system operations.
public FileSystem(IFileSystemOperations operations)Parameters
Section titled “Parameters”operationsIFileSystemOperations
The operations for file system.
Properties
Section titled “Properties”Features
Section titled “Features”Gets the optional features supported by the file system.
public FileSystemFeatures Features { get; }Property Value
Section titled “Property Value”Gets a kind of the filesystem.
public string Kind { get; }Property Value
Section titled “Property Value”Gets the local file system.
public static FileSystem Local { get; }Property Value
Section titled “Property Value”A FileSystem object representing the local file system.
Gets a name of the filesystem.
public string Name { get; }Property Value
Section titled “Property Value”Gets a link to the top directory of the file system, or null when the file system has no single top directory.
public DirectoryLink Root { get; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Reading this property asks the file system to resolve the directory separator. The returned link carries the loaded information, so FileSystemStructureLink.Exists costs no further request. The local file system on Windows has no single top directory, because a path made only of the separator resolves against the current drive.
Methods
Section titled “Methods”Dispose()
Section titled “Dispose()”public virtual void Dispose()GetDirectory(string)
Section titled “GetDirectory(string)”Returns a link to directory.
public DirectoryLink GetDirectory(string fullName)Parameters
Section titled “Parameters”fullNamestring
Full name including parent directories.
Returns
Section titled “Returns”GetDirectoryAsync(string)
Section titled “GetDirectoryAsync(string)”Returns a link to directory with loaded information.
public Task<DirectoryLink> GetDirectoryAsync(string fullName)Parameters
Section titled “Parameters”fullNamestring
Full name including parent directories.
Returns
Section titled “Returns”Remarks
Section titled “Remarks”The returned link carries the same FileSystemStructureLink.FullName as the one from GetDirectory(string).
GetExisting(string)
Section titled “GetExisting(string)”Returns a link to existing file/directory.
public FileSystemStructureLink GetExisting(string fullName)Parameters
Section titled “Parameters”fullNamestring
Full name including directory.
Returns
Section titled “Returns”GetExistingAsync(string)
Section titled “GetExistingAsync(string)”Returns a link to existing file/directory with loaded information.
public Task<FileSystemStructureLink> GetExistingAsync(string fullName)Parameters
Section titled “Parameters”fullNamestring
Full name including directory.
Returns
Section titled “Returns”GetFile(string)
Section titled “GetFile(string)”Returns a link to file.
public FileLink GetFile(string fullName)Parameters
Section titled “Parameters”fullNamestring
Full name including directory.
Returns
Section titled “Returns”GetFileAsync(string)
Section titled “GetFileAsync(string)”Returns a link to file with loaded information.
public Task<FileLink> GetFileAsync(string fullName)Parameters
Section titled “Parameters”fullNamestring
Full name including directory.
Returns
Section titled “Returns”Remarks
Section titled “Remarks”The returned link carries the same FileSystemStructureLink.FullName as the one from GetFile(string).
Events
Section titled “Events”Changed
Section titled “Changed”Occurs when a file/directory is changed.
public EventHandler<FileSystemLinkChangeEventArgs> ChangedEvent Type
Section titled “Event Type”EventHandler<FileSystemLinkChangeEventArgs>
Changing
Section titled “Changing”Occurs when a file/directory is changing.
public EventHandler<FileSystemLinkChangeEventArgs> ChangingEvent Type
Section titled “Event Type”EventHandler<FileSystemLinkChangeEventArgs>
Created
Section titled “Created”Occurs when a file/directory is created.
public EventHandler<FileSystemLinkChangeEventArgs> CreatedEvent Type
Section titled “Event Type”EventHandler<FileSystemLinkChangeEventArgs>
Creating
Section titled “Creating”Occurs when a file/directory is creating.
public EventHandler<FileSystemLinkChangeEventArgs> CreatingEvent Type
Section titled “Event Type”EventHandler<FileSystemLinkChangeEventArgs>
Deleted
Section titled “Deleted”Occurs when a file/directory is deleted.
public EventHandler<FileSystemLinkChangeEventArgs> DeletedEvent Type
Section titled “Event Type”EventHandler<FileSystemLinkChangeEventArgs>
Deleting
Section titled “Deleting”Occurs when a file/directory is deleting.
public EventHandler<FileSystemLinkChangeEventArgs> DeletingEvent Type
Section titled “Event Type”EventHandler<FileSystemLinkChangeEventArgs>
Occurs when a file/directory is moved.
public EventHandler<FileSystemLinkMoveEventArgs> MovedEvent Type
Section titled “Event Type”EventHandler<FileSystemLinkMoveEventArgs>
Moving
Section titled “Moving”Occurs when a file/directory is moving.
public EventHandler<FileSystemLinkMoveEventArgs> Moving