MCPcopy Create free account
hub / github.com/couchbase/forestdb / does_file_exist

Function does_file_exist

tests/functional/compact_functional_test.cc:1207–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205
1206#if !defined(WIN32) && !defined(_WIN32)
1207static bool does_file_exist(const char *filename) {
1208 struct stat st;
1209 int result = stat(filename, &st);
1210 return result == 0;
1211}
1212#else
1213static bool does_file_exist(const char *filename) {
1214 return GetFileAttributes(filename) != INVALID_FILE_ATTRIBUTES;

Callers 1

Calls 1

statClass · 0.70

Tested by

no test coverage detected