FileUtils Class Reference
List of all members.
Static Public Member Functions |
static bool | rmAllFiles (const QString &dirPath, const QStringList &nameFilters=QStringList()) |
| Deletes all files in specified directory.
|
Member Function Documentation
bool FileUtils::rmAllFiles |
( |
const QString & |
dirPath, |
|
|
const QStringList & |
nameFilters = QStringList() | |
|
) |
| | [static] |
Deletes all files in specified directory.
Attempts to delete all files it can. If one file cannot be deleted then this method will proceed to the next one until all files are iterated over. Failure to delete even one file will result in 'false' being returned.
- Parameters:
-
| dirPath | Path to the directory. |
| nameFilters | Filters as in QDir::setNameFilters(). |
| filters | QDir::Filter |
- Returns:
- true if all files were successfully deleted.
The documentation for this class was generated from the following files: