diff options
Diffstat (limited to 'node/Utils.cpp')
-rw-r--r-- | node/Utils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/node/Utils.cpp b/node/Utils.cpp index 45d1aee8..53a67179 100644 --- a/node/Utils.cpp +++ b/node/Utils.cpp @@ -280,8 +280,12 @@ int64_t Utils::getFileSize(const char *path) struct stat s; if (stat(path,&s)) return -1; +#ifdef __WINDOWS__ + return s.st_size; +#else if (S_ISREG(s.st_mode)) return s.st_size; +#endif return -1; } |