files

files (documentation is a work in progress)

virtuosity.files

Classes

Methods


Classes

WriteStream

file write stream

new virtuosity.files.WriteStream(path);


Parameter Type Description
path String path


Methods

readFile

readFile

virtuosity.files.readFile(path, asyncronous);


Parameter Type Description
path String path
asyncronous Boolean (OPTIONAL) read file asyncronously

writeFile

writeFile

virtuosity.files.writeFile(path, output, asyncronous);


Parameter Type Description
path String path
output String output
asyncronous Boolean (OPTIONAL) write file asyncronously

deleteFile

deleteFile

virtuosity.files.deleteFile(path);


Parameter Type Description
path String path

copyFile

copyFile

virtuosity.files.copyFile(path, destination);


Parameter Type Description
path String path
destination String desination

fileExists

fileExists

virtuosity.files.fileExists(path);


Parameter Type Description
path String path

createDirectory

createDirectory

virtuosity.files.createDirectory(path);


Parameter Type Description
path String path

getFileExtention

getFileExtention

virtuosity.files.getFileExtention(path);


Parameter Type Description
path String path

getFileName

getFileName

virtuosity.files.getFileName(path);


Parameter Type Description
path String path

getFileNameWithoutExtention

getFileNameWithoutExtention

virtuosity.files.getFileNameWithoutExtention(path);


Parameter Type Description
path String path

getFiles

getFiles

virtuosity.files.getFiles(path, path);


Parameter Type Description
path String path
path Int depth

getFilePath

getFilePath

virtuosity.files.getFilePath(path);


Parameter Type Description
path String path

getFilePathUpDirectory

getFilePathUpDirectory

virtuosity.files.getFilePathUpDirectory(path);


Parameter Type Description
path String path

deleteFolder

deleteFolder

virtuosity.files.deleteFolder(location);


Parameter Type Description
location String location

renameFile

renameFile

virtuosity.files.renameFile(path);


Parameter Type Description
path String path

renameDirectory

renameDirectory

virtuosity.files.renameDirectory(path);


Parameter Type Description
path String path