AuroraRuntime/Include/Aurora/IO/FS/FS.hpp

54 lines
1.8 KiB
C++
Raw Normal View History

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);
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);
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);
AUKN_SYM bool NormalizePath(AuString &out, const AuString &in);
AUKN_SYM bool GetFileFromPath(AuString &out, const AuString &path);
AUKN_SYM bool GetDirectoryFromPath(AuString &out, const AuString &path);
AUKN_SYM bool GoUpToSeparator(AuString &out, const AuString &path);
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"
#include "Stat.hpp"
#include "Async.hpp"