FileSystem

Namespace: TagBites.IO
Assembly: TagBites.IO.dll

Represents the file system contains the procedures that are used to perform file, directory or file version operations.

public sealed class FileSystem : System.IDisposable

Constructors

FileSystem(IFileSystemReadOperations)

Initializes a new instance of the TagBites.IO.FileSystem class for a specified file system read operations.

public void FileSystem(IFileSystemReadOperations operations)

Result Type: void

Parameters

TypeName
IFileSystemReadOperationsoperationsThe read operations for file system.

FileSystem(IFileSystemOperations)

Initializes a new instance of the TagBites.IO.FileSystem class for a specified file system operations.

public void FileSystem(IFileSystemOperations operations)

Result Type: void

Parameters

TypeName
IFileSystemOperationsoperationsThe operations for file system.

Properties

Local

Gets the local file system.

public FileSystem Local { get; }

Result Type: FileSystem

SupportsFileSystemPermissions

public bool SupportsFileSystemPermissions { get; }

Result Type: bool

SupportsFileSystemWatch

public bool SupportsFileSystemWatch { get; }

Result Type: bool

Methods

Dispose()

public void Dispose()

Result Type: void

GetDirectory(string)

Returns link to directory.

public DirectoryLink GetDirectory(string fullName)

Result Type: DirectoryLink

Parameters

TypeName
stringfullNameFull name including parent directory.

GetExisting(string)

Returns link to existing file/directory.

public FileSystemStructureLink GetExisting(string fullName)

Result Type: FileSystemStructureLink

Parameters

TypeName
stringfullNameFull name including directory.

GetFile(string)

Returns link to file.

public FileLink GetFile(string fullName)

Result Type: FileLink

Parameters

TypeName
stringfullNameFull name including directory.

Events

Changed

Occurs when a file/directory is changed.

public EventHandler<FileSystemLinkChangeEventArgs> Changed

Result Type: EventHandler<FileSystemLinkChangeEventArgs>

Changing

Occurs when a file/directory is changing.

public EventHandler<FileSystemLinkChangeEventArgs> Changing

Result Type: EventHandler<FileSystemLinkChangeEventArgs>

Created

Occurs when a file/directory is created.

public EventHandler<FileSystemLinkChangeEventArgs> Created

Result Type: EventHandler<FileSystemLinkChangeEventArgs>

Creating

Occurs when a file/directory is creating.

public EventHandler<FileSystemLinkChangeEventArgs> Creating

Result Type: EventHandler<FileSystemLinkChangeEventArgs>

Deleted

Occurs when a file/directory is deleted.

public EventHandler<FileSystemLinkChangeEventArgs> Deleted

Result Type: EventHandler<FileSystemLinkChangeEventArgs>

Deleting

Occurs when a file/directory is deleting.

public EventHandler<FileSystemLinkChangeEventArgs> Deleting

Result Type: EventHandler<FileSystemLinkChangeEventArgs>

Moved

Occurs when a file/directory is moved.

public EventHandler<FileSystemLinkMoveEventArgs> Moved

Result Type: EventHandler<FileSystemLinkMoveEventArgs>

Moving

Occurs when a file/directory is moving.

public EventHandler<FileSystemLinkMoveEventArgs> Moving

Result Type: EventHandler<FileSystemLinkMoveEventArgs>