Skip to content

FileOperationEvent

Defined in: namespaces.ts:88

Information passed to before/after hook handlers.

type: FileOperationType

Defined in: namespaces.ts:90

The type of operation.


paths: string[]

Defined in: namespaces.ts:92

File URL strings involved in the operation.


optional success?: boolean

Defined in: namespaces.ts:94

Whether the operation succeeded (after-hooks only).


optional error?: string

Defined in: namespaces.ts:96

Error message if the operation failed (after-hooks only).


optional newUrl?: string

Defined in: namespaces.ts:98

New URL after rename/create operations (after-hooks only).


optional url?: string

Defined in: namespaces.ts:100

Created/target URL for createFile/createDirectory (after-hooks only).