#include <FileManager.h>
Public Member Functions | |
| bool | isDirectory (const std::string &aDir) |
| Check if a directory exists. | |
| bool | isFile (const std::string &aFilePath) |
| Check if a file exists. | |
| bool | createDirectory (const std::string &aDir) |
| Create a directory if it doesn't exists. | |
| bool | copyFileToDir (const std::string &aFrom, const std::string &aDir) |
| Copy a file to a directory. | |
| bool | copyFile (const std::string &aFrom, const std::string &aTo) |
| Copy a file from a path to another. | |
| bool | deleteFile (const std::string &aPath) |
| Delete a file. | |
| bool | moveFile (const std::string &aFrom, const std::string &aTo) |
| Move a file from a path to another. | |
| bool | displayFile (const std::string &aPath) |
| Display the content of file. | |
| std::string | getFileNameFromPath (const std::string &aPath) |
| Extract the fileName of a path. | |
| std::string | removeFirstDirFromPath (std::string &aPath) |
| Extract the first dir of the directory path. | |
| int | noCaseComp (const std::string &s1, const std::string &s2) |
| Compare 2 string case insensitive. | |
| bool | isTheSameFile (const std::string &aFile, const std::string &aAnotherFile) |
| Check if a file is the same than an other. | |
| bool | fileExistsInDirectory (const std::string &aFileName, const std::string &aDirPath) |
| Check if the same file already exists in a specified directory. | |
|
||||||||||||
|
Copy a file from a path to another.
|
|
||||||||||||
|
Copy a file to a directory.
|
|
|
Create a directory if it doesn't exists.
|
|
|
Delete a file.
|
|
|
Display the content of file. Just used for tests |
|
||||||||||||
|
Check if the same file already exists in a specified directory.
|
|
|
Extract the fileName of a path.
|
|
|
Check if a directory exists.
|
|
|
Check if a file exists.
|
|
||||||||||||
|
Check if a file is the same than an other. The comparison is based on the name (case sensitive or not) and the size of the file
|
|
||||||||||||
|
Move a file from a path to another.
|
|
||||||||||||
|
Compare 2 string case insensitive.
|
|
|
Extract the first dir of the directory path. Becareful, the aPath string is modified, the dir returned is erase from it
|
1.4.4