Utils::FileUtils Namespace | Extending Qt Creator Manual
Description: The FileUtils namespace contains file and directory related convenience functions.

- Extending Qt Creator Manual
- Utils::FileUtils Namespace
- Extending Qt Creator Manual 19.0.0

# Utils::FileUtils Namespace

namespace Utils::FileUtils

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

Header: | `#include <FileUtils>`

## Functions

Utils::Result<> | copyIfDifferent(const Utils::FilePath &srcFilePath, const Utils::FilePath &tgtFilePath)

## Detailed Description

## Function Documentation

### Utils::Result<> FileUtils::copyIfDifferent(const Utils::FilePath &srcFilePath, const Utils::FilePath &tgtFilePath)

Copies a file specified by srcFilePath to tgtFilePath only if srcFilePath is different (file contents and last modification time).

Returns whether the operation succeeded.