Reece
510928e62e
TODO: investigate registering an int3 signal handler to prevent crashing under internal builds [*] Amend MemoryViews [*] Begin shifting towards MemoryView based binary APIs [*] Fix public RSA key leak [+] Some clean up and possible bug fixes
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
/***
|
|
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);
|
|
AUKN_SYM bool WriteString(const AuString &path, const AuString &str);
|
|
|
|
AUKN_SYM bool ReadFile(const AuString &path, AuList<uint8_t> &buffer);
|
|
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);
|
|
}
|
|
|
|
#include "FileStream.hpp"
|
|
#include "FileArbitraryReader.hpp"
|
|
#include "FileReader.hpp"
|
|
#include "FileWriter.hpp"
|
|
#include "Resources.hpp"
|
|
#include "Stat.hpp"
|
|
#include "Async.hpp" |