2018-11-18 11:37:41 -08:00
|
|
|
|
using Ryujinx.HLE.HOS;
|
|
|
|
|
using Ryujinx.HLE.HOS.Services.FspSrv;
|
2019-02-13 16:44:39 -08:00
|
|
|
|
using System;
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.FileSystem
|
|
|
|
|
{
|
|
|
|
|
interface IFileSystemProvider
|
|
|
|
|
{
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long CreateFile(string name, long size);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long CreateDirectory(string name);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long RenameFile(string oldName, string newName);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long RenameDirectory(string oldName, string newName);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
DirectoryEntry[] GetEntries(string path);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
DirectoryEntry[] GetDirectories(string path);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
DirectoryEntry[] GetFiles(string path);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long DeleteFile(string name);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long DeleteDirectory(string name, bool recursive);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
bool FileExists(string name);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
bool DirectoryExists(string name);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long OpenFile(string name, out IFile fileInterface);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long OpenDirectory(string name, int filterFlags, out IDirectory directoryInterface);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
string GetFullPath(string name);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long GetFreeSpace(ServiceCtx context);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
|
2018-12-06 03:16:24 -08:00
|
|
|
|
long GetTotalSpace(ServiceCtx context);
|
2019-02-13 16:44:39 -08:00
|
|
|
|
|
|
|
|
|
FileTimestamp GetFileTimeStampRaw(string name);
|
2018-11-18 11:37:41 -08:00
|
|
|
|
}
|
|
|
|
|
}
|