2#ifndef __FILESYSTEM_H__
3#define __FILESYSTEM_H__
26 return _ksys_file_create(name);
35 int ret = _ksys_file_create(path);
43 return _ksys_file_create(name.c_str());
49 int CreateFile(
const std::string& name,
const std::string& path)
51 std::string fullPath = path + name;
52 return _ksys_file_create(fullPath.c_str());
61 return _ksys_file_delete(name);
67 int Delete(
const char *name,
char *path)
70 return _ksys_file_delete(path);
77 return _ksys_file_delete(name.c_str());
83 int Delete(
const std::string& name,
const std::string& path)
85 std::string fullPath = path + name;
86 return _ksys_file_delete(fullPath.c_str());
94 inline int mkdir(
const char *path)
96 return _ksys_mkdir(path);
101 inline int mkdir(
const std::string& path)
103 return _ksys_mkdir(path.c_str());
112 if(_ksys_file_info(Path.c_str(), buff) > 0)
125 inline int Rename(
const std::string& OldName,
const std::string& NewName)
127 return _ksys_file_rename(OldName.c_str(), NewName.c_str());
int Delete(const char *name)
удалить файл или папку
Definition filesystem.hpp:59
int Rename(const std::string &OldName, const std::string &NewName)
Переименовать файл/папку
Definition filesystem.hpp:125
bool Exist(const std::string &Path)
проверяет существует ли файл или папки
Definition filesystem.hpp:109
int mkdir(const char *path)
Создать папку
Definition filesystem.hpp:94
int CreateFile(const char *name)
Создать файл
Definition filesystem.hpp:24
Основное пространство имён
Definition base.hpp:17