未验证 提交 2acd7948 编写于 作者: A Alexander Aprelev 提交者: GitHub

Add fml::FileExists implementation for Windows (#7845)

上级 fa38a985
......@@ -316,6 +316,10 @@ bool TruncateFile(const fml::UniqueFD& file, size_t size) {
return true;
}
bool FileExists(const fml::UniqueFD& base_directory, const char* path) {
return IsFile(GetAbsolutePath(base_directory, path).c_str());
}
bool WriteAtomically(const fml::UniqueFD& base_directory,
const char* file_name,
const Mapping& mapping) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册