Skip to content

FileOperationEvent

Defined in: namespaces.ts:89

Information passed to before/after hook handlers.

type: FileOperationType

Defined in: namespaces.ts:91

The type of operation.


paths: string[]

Defined in: namespaces.ts:93

File URL strings involved in the operation.


optional success?: boolean

Defined in: namespaces.ts:95

Whether the operation succeeded (after-hooks only).


optional error?: string

Defined in: namespaces.ts:97

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


optional newUrl?: string

Defined in: namespaces.ts:99

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


optional url?: string

Defined in: namespaces.ts:101

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