FileOperationEvent
Defined in: namespaces.ts:89
Information passed to before/after hook handlers.
Properties
Section titled “Properties”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.
success?
Section titled “success?”
optionalsuccess?:boolean
Defined in: namespaces.ts:95
Whether the operation succeeded (after-hooks only).
error?
Section titled “error?”
optionalerror?:string
Defined in: namespaces.ts:97
Error message if the operation failed (after-hooks only).
newUrl?
Section titled “newUrl?”
optionalnewUrl?:string
Defined in: namespaces.ts:99
New URL after rename/create operations (after-hooks only).
optionalurl?:string
Defined in: namespaces.ts:101
Created/target URL for createFile/createDirectory (after-hooks only).