summaryrefslogtreecommitdiff
path: root/filesystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'filesystem.c')
-rw-r--r--filesystem.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/filesystem.c b/filesystem.c
deleted file mode 100644
index f68fe72..0000000
--- a/filesystem.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <sys/types.h>
-#include <sys/stat.h>
-#if __unix__
-#include <unistd.h>
-#endif
-
-static bool fs_file_exists(char const *path) {
-#if _WIN32
- struct _stat statbuf = {0};
- if (_stat(path, &statbuf) != 0)
- return false;
- return statbuf.st_mode == _S_IFREG;
-#else
- struct stat statbuf = {0};
- if (stat(path, &statbuf) != 0)
- return false;
- return S_ISREG(statbuf.st_mode);
-#endif
-}