Extending Qt Creator Manual | FileUtils

Extending Qt Creator Manual 4.7.2

# FileUtils Class

(Utils::FileUtils)

The FileUtils class contains file and directory related convenience functions. More...

Header: | #include <FileUtils>

- List of all members, including inherited members

## Static Public Members

Utils::FileName | canonicalPath(const Utils::FileName &path)
bool | copyRecursively(const Utils::FileName &srcFilePath, const Utils::FileName &tgtFilePath, QString *error = nullptr, const int &copyHelper)
QString | fileSystemFriendlyName(const QString &name)
int | indexOfQmakeUnfriendly(const QString &name, int startpos = 0)
bool | isAbsolutePath(const QString &fileName)
bool | isFileNewerThan(const Utils::FileName &filePath, const QDateTime &timeStamp)
bool | isRelativePath(const QString &fileName)
bool | makeWritable(const Utils::FileName &path)
QString | normalizePathName(const QString &name)
QString | qmakeFriendlyName(const QString &name)
bool | removeRecursively(const Utils::FileName &filePath, QString *error = nullptr)
QString | resolvePath(const QString &baseDir, const QString &fileName)
Utils::FileName | resolveSymlinks(const Utils::FileName &path)
QString | shortNativePath(const Utils::FileName &path)

## Detailed Description

The FileUtils class contains file and directory related convenience functions.

## Member Function Documentation

### `[static]` Utils::FileName FileUtils::canonicalPath(const Utils::FileName &path)

### `[static]` bool FileUtils::copyRecursively(const Utils::FileName &srcFilePath, const Utils::FileName &tgtFilePath, QString *error = nullptr, const int &copyHelper)

### `[static]` QString FileUtils::fileSystemFriendlyName(const QString &name)

### `[static]` int FileUtils::indexOfQmakeUnfriendly(const QString &name, int startpos = 0)

### `[static]` bool FileUtils::isAbsolutePath(const QString &fileName)

### `[static]` bool FileUtils::isFileNewerThan(const Utils::FileName &filePath, const QDateTime &timeStamp)

### `[static]` bool FileUtils::isRelativePath(const QString &fileName)

### `[static]` bool FileUtils::makeWritable(const Utils::FileName &path)

### `[static]` QString FileUtils::normalizePathName(const QString &name)

### `[static]` QString FileUtils::qmakeFriendlyName(const QString &name)

### `[static]` bool FileUtils::removeRecursively(const Utils::FileName &filePath, QString *error = nullptr)

### `[static]` QString FileUtils::resolvePath(const QString &baseDir, const QString &fileName)

### `[static]` Utils::FileName FileUtils::resolveSymlinks(const Utils::FileName &path)

### `[static]` QString FileUtils::shortNativePath(const Utils::FileName &path)