Tubio/Tubio/FileSystem.h

28 lines
744 B
C
Raw Normal View History

#pragma once
#include <string>
#include <fstream>
#include <sstream>
#include <stdio.h>
2020-09-28 20:01:50 +02:00
#include <stdlib.h>
#include <filesystem>
class FileSystem
{
public:
static std::string ReadFile(std::string filename);
static bool WriteFile(std::string filename, std::string content);
static bool Exists(std::string filename);
static bool Copy(std::string from, std::string to);
static bool Delete(std::string filename);
static bool ExistsDirectory(std::string name);
static bool _CreateDirectory(std::string name);
static bool CreateDirectoryIfNotExists(std::string name);
static bool DeleteDirectory(std::string name);
2020-09-28 20:01:50 +02:00
static long long int CalculateSize(std::string name, bool isDirectory = false);
private:
};