mirror of
https://github.com/corda/corda.git
synced 2025-02-01 08:48:09 +00:00
commit
2a6acfcbe5
@ -129,7 +129,7 @@ inline bool
|
|||||||
exists(string_t path)
|
exists(string_t path)
|
||||||
{
|
{
|
||||||
#ifdef PLATFORM_WINDOWS
|
#ifdef PLATFORM_WINDOWS
|
||||||
return GetFileAttributes(path) != INVALID_FILE_ATTRIBUTES;
|
return GetFileAttributesW(path) != INVALID_FILE_ATTRIBUTES;
|
||||||
#else
|
#else
|
||||||
STRUCT_STAT s;
|
STRUCT_STAT s;
|
||||||
return STAT(path, &s) == 0;
|
return STAT(path, &s) == 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user