Updates to File.c

This commit is contained in:
twinaphex 2017-07-04 07:57:56 +02:00
parent 1ad0f7d301
commit d067957e4e

View File

@ -36,9 +36,10 @@
#include <unistd.h>
#endif
#ifdef __MINGW32__
#include <sys/stat.h>
#ifdef __MINGW32__
int archCreateDirectory(const char* pathname)
{
return mkdir(pathname);
@ -96,7 +97,7 @@ int archFileExists(const char* fileName)
_stat(path, &buf);
if (file_info == INVALID_FILE_ATTRIBUTES)
if (file_info == -1)
return 0;
return 1;
@ -109,9 +110,6 @@ int archFileDelete(const char* fileName)
#else
#include <sys/stat.h>
int archCreateDirectory(const char* pathname)
{
return mkdir(pathname, 0777);