For the complete documentation index, see llms.txt. This page is also available as Markdown.

Interceptors

There are ColdBox interception points announced when working with CBFS disks, directories, and files. You can use them to log file access, secure folders, and add application behavior.

Each example shows the BoxLang class first and the equivalent CFML class second.

cbfsOnDiskStart

Invoked after a disk has been started. CBFS manages disk startup automatically.

class {
    function cbfsOnDiskStart( disk ) {
        // Handle the event.
    }
}
component {
    function cbfsOnDiskStart( disk ) {
        // Handle the event.
    }
}

cbfsOnDiskShutdown

Invoked after a disk has been shut down. CBFS manages disk shutdown automatically.

class {
    function cbfsOnDiskShutdown( disk ) {
        // Handle the event.
    }
}
component {
    function cbfsOnDiskShutdown( disk ) {
        // Handle the event.
    }
}

File events

The file events are cbfsOnFileCreate, cbfsOnFileMove, cbfsOnFileCopy, cbfsOnFileDelete, and cbfsOnFileInfoRequest. Each receives the affected file.

Directory events

The directory events are cbfsOnDirectoryMove, cbfsOnDirectoryCreate, cbfsOnDirectoryCopy, and cbfsOnDirectoryDelete.

Last updated

Was this helpful?