Add jobs as default behaviour, Add run to makefile

This commit is contained in:
Thraix
2019-10-04 16:48:22 +02:00
parent 5a103442f8
commit 8315fd0897
5 changed files with 183 additions and 65 deletions
+21 -5
View File
@@ -1,16 +1,32 @@
#pragma once
#include <string>
#include <fstream>
#include <dirent.h>
#include "Common.h"
#include <cstring>
#include <vector>
#include <algorithm>
#include <cstring>
#include <dirent.h>
#include <fstream>
#include <sys/stat.h>
#include <stdlib.h>
#include <string>
#include <vector>
struct FileUtils
{
static bool HasPath(const std::string& path)
{
struct stat info;
if(stat(path.c_str(), &info) != 0)
return false;
else
return true;
}
static bool CreateDirectory(const std::string& path)
{
return mkdir(path.c_str(), 0777);
}
static std::string GetRealPath(const std::string& filename)
{
#if defined(__linux__)