Utility Methods
checksum
/**
* @path The file path
* @algorithm Default is MD5, but SHA-1, SHA-256, and SHA-512 can also be used.
*
* @throws cbfs.FileNotFoundException
*/
string function checksum( required path, algorithm = "MD5" );
// Example
disk.checksum( expandPath( "myFile.txt" ), "SHA-256" );chmod
/**
* @path The file path
* @mode Access mode, the same attributes you use for the Linux command `chmod`
*
* @return cbfs.models.IDisk
*/
function chmod( required string path, required string mode );
// Example
disk.chmod( expandPath( "myFile.txt" ), "600" );createSymbolicLink
extension
info
lastModified
mimeType
size
temporaryUrl
url
Last updated
Was this helpful?