File Object
var file = disk.file( "some/path/somefile.txt" );var file = disk.file( "somefile.txt" )
.create( "some contents" )
.append( "append contents" );
var mimeType = file.mimeType(); // returns 'text/plain'append
/**
* @contents The contents of the file to append
* @metadata Struct of metadata to store with the file
* @throwOnMissing Boolean flag to throw if the file is missing. Otherwise it will be created if missing.
*
* @return File
*
* @throws cbfs.FileNotFoundException
*/
function append(
required contents,
struct metadata = {},
boolean throwOnMissing = false
);checksum
chmod
copy
create
delete
exists
extension
get
info
isExecutable
isHidden
isReadable
isSymbolicLink
isWritable
lastModified
mimeType
move
prepend
setVisibility
size
stream
temporaryURL
touch
url
visibility
Last updated
Was this helpful?