2#ifndef __FILESYSTEM_H__
3#define __FILESYSTEM_H__
25 return _ksys_file_create(name);
34 int ret = _ksys_file_create(path);
42 return _ksys_file_create(name.c_str());
50 std::string fullPath = path + name;
51 return _ksys_file_create(fullPath.c_str());
60 return _ksys_file_delete(name);
66 int Delete(
const char *name,
char *path)
69 return _ksys_file_delete(path);
76 return _ksys_file_delete(name.c_str());
82 int Delete(std::string name, std::string path)
84 std::string fullPath = path + name;
85 return _ksys_file_delete(fullPath.c_str());
95 return _ksys_mkdir(path);
102 return _ksys_mkdir(path.c_str());
111 if(_ksys_file_info(Path.c_str(), buff) > 0)
121 int Rename(std::string OldName, std::string NewName)
123 return _ksys_file_rename(OldName.c_str(), NewName.c_str());
int Delete(const char *name)
удалить файл или папку
Definition filesystem.hpp:58
bool Exist(std::string Path)
проверяет существует ли файл или папки
Definition filesystem.hpp:108
int mkdir(const char *path)
Создать папку
Definition filesystem.hpp:93
int CreateFile(const char *name)
Создать файл
Definition filesystem.hpp:23
Основное пространство имён
Definition base.hpp:18