Skip to content

Type Alias: NVEFileSystemEvents

ts
type NVEFileSystemEvents = EventMap<{
  change: [];
  commitError: [unknown, NVEFileSystem];
  created: [string, NVEDirent];
  direntCommitError: [unknown, NVEDirent];
  disposed: [NVEFileSystem];
  moved: [string, string, NVEDirent];
  unlinked: [string];
}>;

Events emitted by NVEFileSystem for file system changes.

  • disposed: Emitted when the file system is disposed. Payload: [NVEFileSystem]
  • created: Emitted when a file or directory is created. Payload: [path, dirent]
  • moved: Emitted when a file or directory is moved or renamed. Payload: [oldPath, newPath, dirent]
  • unlinked: Emitted when a file or directory is deleted. Payload: [path]
  • change: Emitted when a change occurs in the file system. This is a generic event that can be used to listen for any changes.