2021-06-27 21:25:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: FS.hpp
|
|
|
|
Date: 2021-6-9
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::IO::FS
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
Lists files with respect to a given partial or full path of a directory
|
|
|
|
@param files relative address of an entry
|
|
|
|
*/
|
|
|
|
AUKN_SYM bool FilesInDirectory(const AuString &string, AuList<AuString> &files);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Lists directories with respect to a given partial or full path of a directory
|
|
|
|
@param files relative address of an entry
|
|
|
|
*/
|
|
|
|
AUKN_SYM bool DirsInDirectory(const AuString &string, AuList<AuString> &dirs);
|
|
|
|
|
2021-09-14 23:56:26 +00:00
|
|
|
AUKN_SYM bool WriteFile(const AuString &path, const void *data, AuUInt length);
|
2021-06-27 21:25:29 +00:00
|
|
|
AUKN_SYM bool WriteString(const AuString &path, const AuString &str);
|
|
|
|
|
2022-01-20 17:45:52 +00:00
|
|
|
AUKN_SYM bool ReadFile(const AuString &path, Memory::ByteBuffer &buffer);
|
2021-06-27 21:25:29 +00:00
|
|
|
AUKN_SYM bool ReadString(const AuString &path, AuString &buffer);
|
|
|
|
|
|
|
|
AUKN_SYM bool FileExists(const AuString &path);
|
|
|
|
AUKN_SYM bool DirExists(const AuString &path);
|
|
|
|
|
|
|
|
AUKN_SYM bool DirMk(const AuString &path);
|
|
|
|
|
|
|
|
AUKN_SYM bool Remove(const AuString &path);
|
|
|
|
|
|
|
|
AUKN_SYM bool Relink(const AuString &src, const AuString &dest);
|
|
|
|
|
|
|
|
AUKN_SYM bool Copy(const AuString &src, const AuString &dest);
|
2022-01-20 17:45:52 +00:00
|
|
|
|
2021-06-27 21:25:29 +00:00
|
|
|
}
|
|
|
|
|
2021-10-23 20:13:40 +00:00
|
|
|
#include "IFileStream.hpp"
|
2021-06-27 21:25:29 +00:00
|
|
|
#include "FileStream.hpp"
|
|
|
|
#include "FileArbitraryReader.hpp"
|
|
|
|
#include "FileReader.hpp"
|
|
|
|
#include "FileWriter.hpp"
|
|
|
|
#include "Resources.hpp"
|
2021-09-13 20:11:12 +00:00
|
|
|
#include "Stat.hpp"
|
|
|
|
#include "Async.hpp"
|