All Classes Namespaces Files Functions Variables Enumerations Enumerator
libs/system/fileExist.cpp
Go to the documentation of this file.
00001 
00010 #include "fileExist.h"
00011 #include "DetectOS.h"
00012 #if defined(MSC)
00013 #include <windows.h>
00014 #include <direct.h>
00015 #include <io.h>
00016 #ifndef F_OK
00017 #define F_OK 06
00018 #endif
00019 #define access _access
00020 #else
00021 #include <unistd.h>
00022 #endif
00023 
00024 
00025 bool qrk::fileExist(const char* file)
00026 {
00027     return (access(file, F_OK) == 0) ? true : false;
00028 }