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 SourceNotifyDirectoryAdded(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. |
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. |
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. |
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. |
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. |
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. |