forked from firka/flutter
Add fml::FileExists implementation for Windows (flutter/engine#7845)
This commit is contained in:
committed by
GitHub
parent
a048555aa5
commit
adc3ca0e31
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user