cbfs
  • Introduction
  • Intro
    • Release History
    • About This Book
  • Getting Started
    • Installation
    • Providers
      • Local Provider
      • RAM Provider
      • S3 Provider
  • Usage
    • Disk Service
    • Disk Usage
      • Configuration Methods
      • File Methods
      • File Object
      • Directory Methods
      • Utility Methods
      • Stream Methods
      • Verification Methods
  • Digging Deeper
    • Interceptors
    • Module Disks
    • Custom Providers
Powered by GitBook
On this page
  • cbfsOnDiskStart
  • cbfsOnDiskShutdown
  • cbfsOnFileCreate
  • cbfsOnFileMove
  • cbfsOnFileCopy
  • cbfsOnFileDelete
  • cbfsOnFileInfoRequest
  • cbfsOnFileMove
  • cbfsOnDirectoryMove
  • cbfsOnDirectoryCreate
  • cbfsOnDirectoryCopy
  • cbfsOnDirectoryDelete

Was this helpful?

Edit on GitHub
Export as PDF
  1. Digging Deeper

Interceptors

PreviousVerification MethodsNextModule Disks

Last updated 2 years ago

Was this helpful?

There are that are announced when working with CBFS disks, directories, and files that you can use. These can be used to provide additional functionality in your applications such as logging file access, securing folders, and more.

cbfsOnDiskStart

Invoked after a disk has been started.

CBFS automatically manages the starting of disks.

component {
      function cbfsOnDiskStart( disk ) {
            //java...
      }
}

cbfsOnDiskShutdown

CBFS automatically manages the shutdown of disks.

Invoked after a disk has been shutdown.

component {
      function cbfsOnDiskShutdown( disk ) {
            //java...
      }
}

cbfsOnFileCreate

Invoked when a file is created.

component {
    function cbfsOnFileCreate( file ) {
 
    }
}

cbfsOnFileMove

Invoked when a file is moved.

component {
    function cbfsOnFileMove( file ) {
 
    }
}

cbfsOnFileCopy

Invoked when a file is copied.

component {
    function cbfsOnFileCopy( file ) {
 
    }
}

cbfsOnFileDelete

Invoked when a file is deleted.

component {
    function cbfsOnFileDelete( file ) {
        
    }
}

cbfsOnFileInfoRequest

Invoked when info or extended info is requested on a file.

component {
    function cbfsOnFileInfoRequest( file ) {
    
    }
}

cbfsOnFileMove

Invoked when a file is moved.

component {
    function cbfsOnFileMove( file ) {
        
    }
}

cbfsOnDirectoryMove

Invoked when a directory is moved.

component {
    function cbfsOnDirectoryMove( source, destination, disk ) {
    
    }
}

cbfsOnDirectoryCreate

Invoked when a directory is created.

component {
    function cbfsOnDirectoryCreate( directory, disk ) {
    
    }
}

cbfsOnDirectoryCopy

Invoked when a directory is copied.

component {
    function cbfsOnDirectoryCopy( source, destination, disk ) {
    
    }
}

cbfsOnDirectoryDelete

Invoked when a directory is deleted.

component {
    function cbfsOnDirectoryDelete( directory, disk ) {
    
    }
}
ColdBox interception points