FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Core.Services.FileInformation Namespace Reference

Classes

interface  IDirectoryWatcher
 Defines polling-based directory change detection and notification behavior. More...
class  DirectoryWatcher
 Polls a root directory, compares snapshots, and raises normalized change events. More...

Enumerations

enum  FileSystemEventType {
  Created , Deleted , Updated , Moved ,
  Copied
}
 Describes the kind of change detected for a file-system entry. More...

Functions

record FileSystemEvent (string OriginalPath, bool IsDirectory, FileSystemEventType EventType, string? NewPath=null)
 Represents a file-system change event raised by IDirectoryWatcher.

Enumeration Type Documentation

◆ FileSystemEventType

enum FileSurfer.Core.Services.FileInformation.FileSystemEventType

Describes the kind of change detected for a file-system entry.

Enumerator
Created 

A new entry was created.

Deleted 

An existing entry was deleted.

Updated 

An existing entry content or metadata changed.

Moved 

An entry was moved to a different path.

Copied 

An entry was copied to a different path.

Function Documentation

◆ FileSystemEvent()

record FileSurfer.Core.Services.FileInformation.FileSystemEvent ( string OriginalPath,
bool IsDirectory,
FileSystemEventType EventType,
string? NewPath = null )
sealed

Represents a file-system change event raised by IDirectoryWatcher.

Parameters
OriginalPathPath of the entry where the change was detected.
IsDirectoryIndicates whether the changed entry is a directory.
EventTypeThe detected change type.
NewPathOptional destination path for move/copy events.
Here is the caller graph for this function: