Gorgon
Show / Hide Table of Contents

Interface IGorgonFileSystemNotifier

A notification system used to notify a IGorgonFileSystem that changes have been made.

Namespace: Gorgon.IO
Assembly: Gorgon.FileSystem.dll
Syntax
public interface IGorgonFileSystemNotifier

Methods

| Edit this page View Source

NotifyDirectoryAdded(GorgonFileSystemMountPoint, string)

Function to notify a file system that a new directory has been added.

Declaration
IGorgonVirtualDirectory NotifyDirectoryAdded(GorgonFileSystemMountPoint mountPoint, string physicalPath)
Parameters
Type Name Description
GorgonFileSystemMountPoint mountPoint

The mountpoint that triggered the update.

string physicalPath

The physical path to the new directory.

Returns
Type Description
IGorgonVirtualDirectory

The new (or existing) directory corresponding to the physical path.

| Edit this page View Source

NotifyDirectoryDeleted(string)

Function to notify a file system that a directory has been deleted.

Declaration
void NotifyDirectoryDeleted(string directoryPath)
Parameters
Type Name Description
string directoryPath

The path to the directory that was deleted.

| Edit this page View Source

NotifyDirectoryRenamed(GorgonFileSystemMountPoint, string, string, string)

Function to notify a file system that a directory has been renamed.

Declaration
void NotifyDirectoryRenamed(GorgonFileSystemMountPoint mountPoint, string oldPath, string physicalPath, string newName)
Parameters
Type Name Description
GorgonFileSystemMountPoint mountPoint

The mount point for the directory.

string oldPath

The path to the directory that was renamed.

string physicalPath

The physical path for the directory.

string newName

The new name for the directory.

| Edit this page View Source

NotifyFileDeleted(string)

Function to notify a file system that a file has been deleted.

Declaration
void NotifyFileDeleted(string filePath)
Parameters
Type Name Description
string filePath

The path to the file that was deleted.

| Edit this page View Source

NotifyFileRenamed(GorgonFileSystemMountPoint, string, IGorgonPhysicalFileInfo)

Function to notify a file system that a file has been renamed.

Declaration
void NotifyFileRenamed(GorgonFileSystemMountPoint mountPoint, string oldPath, IGorgonPhysicalFileInfo fileInfo)
Parameters
Type Name Description
GorgonFileSystemMountPoint mountPoint

The mount point for the file.

string oldPath

The path to the file that was renamed.

IGorgonPhysicalFileInfo fileInfo

Physical file information for the renamed file.

| Edit this page View Source

NotifyFileWriteStreamClosed(GorgonFileSystemMountPoint, IGorgonPhysicalFileInfo)

Function to notify a file system that a previously opened write stream has been closed.

Declaration
IGorgonVirtualFile NotifyFileWriteStreamClosed(GorgonFileSystemMountPoint mountPoint, IGorgonPhysicalFileInfo fileInfo)
Parameters
Type Name Description
GorgonFileSystemMountPoint mountPoint

The mountpoint that triggered the update.

IGorgonPhysicalFileInfo fileInfo

The information about the physical file.

Returns
Type Description
IGorgonVirtualFile

The file that was updated.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author