Add fml::FileExists implementation for Windows (flutter/engine#7845)

This commit is contained in:
Alexander Aprelev
2019-02-15 12:42:41 -08:00
committed by GitHub
parent a048555aa5
commit adc3ca0e31

View File

@@ -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) {