-
Notifications
You must be signed in to change notification settings - Fork 0
pathlib
This is a library for working with paths
All functions contains in pathlib namespace
example: if(pathlib.isFile(filePath)
-
bool pathlib.make_directory(ponystring path): Creates a directory at the specified path.- Parameters:
-
path: The path to the directory to be created.
-
- Returns:
trueif the directory creation is successful,falseotherwise.
- Parameters:
-
bool pathlib.remove_directory(ponystring path): Removes a directory at the specified path.- Parameters:
-
path: The path to the directory to be removed.
-
- Returns:
trueif the directory removal is successful,falseotherwise.
- Parameters:
-
bool pathlib.deleteAllFilesInDirectory(const ponystring& directory): Deletes all files in a directory.- Parameters:
-
directory: The path to the directory containing files to be deleted.
-
- Returns:
trueif all files are successfully deleted,falseotherwise.
- Parameters:
-
bool pathlib.copyFile(const ponystring& source, const ponystring& destination): Copies a file from the source path to the destination path.- Parameters:
-
source: The path to the source file. -
destination: The path to the destination where the file will be copied.
-
- Returns:
trueif the file is successfully copied,falseotherwise.
- Parameters:
-
bool pathlib.moveFile(const ponystring& source, const ponystring& destination): Moves a file from the source path to the destination path.- Parameters:
-
source: The path to the source file. -
destination: The path to the destination where the file will be moved.
-
- Returns:
trueif the file is successfully moved,falseotherwise.
- Parameters:
-
bool pathlib.isFile(const ponystring& filePath): Checks if a given path corresponds to a regular file.- Parameters:
-
filePath: The path to the file to be checked.
-
- Returns:
trueif the path corresponds to a regular file,falseotherwise.
- Parameters: