fileSystem
Summary
Provides functions to interact with the file system as an extension to the Node.js filesystem module.
Item Index
Methods
copy
Syntax
copy
-
sourcePath -
destinationSourcePath -
callback
Summary
Copies a file or a directory.
copyFile
Syntax
copyFile
-
sourceFilePath -
destinationFilePath -
callback
Summary
Copies a file.
If directory does not exist it will be automatically created.
extract
Syntax
extract
-
filePath -
destinationPath -
[callback]
Summary
Extracts a tar file to the given directory.
getConfDir
Syntax
Summary
Gets OpenVeo configuration directory path.
OpenVeo configuration is stored in user home directory.
Returns:
OpenVeo configuration directory path
getJSONFileContent
Syntax
getJSONFileContent
-
filePath -
callback
Summary
Gets a JSON file content.
This will verify that the file exists first.
mkdir
Syntax
mkdir
-
directoryPath -
[callback]
Summary
Creates a directory.
If parent directory does not exist, it will be automatically created. If directory already exists, it won't do anything.
mkdirRecursive
Syntax
mkdirRecursive
-
directoryPath -
callback
Summary
Creates a directory recursively and asynchronously.
If parent directories do not exist, they will be automatically created.
rmdir
Syntax
rmdir
-
directoryPath -
[callback]
Summary
Removes a directory and all its content recursively and asynchronously.
rmdirRecursive
Syntax
rmdirRecursive
-
directoryPath -
callback
Summary
Removes a directory and all its content recursively and asynchronously.
It is assumed that the directory exists.