Utils::FileUtils Namespace
namespace Utils::FileUtilsFileUtils 命名空间包含与文件和目录相关的便捷函数。更多内容...
| Header: | #include <FileUtils> |
函数
| Utils::Result<> | copyIfDifferent(const Utils::FilePath &srcFilePath, const Utils::FilePath &tgtFilePath) |
函数文档
Utils::Result<> FileUtils::copyIfDifferent(const Utils::FilePath &srcFilePath, const Utils::FilePath &tgtFilePath)
仅当srcFilePath 与指定文件srcFilePath 在文件内容和最后修改时间上存在差异时,才将该文件复制到tgtFilePath 。
返回操作是否成功。
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.