IFileSystemProvider.cs 995 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Ryujinx.HLE.HOS;
  2. using Ryujinx.HLE.HOS.Services.FspSrv;
  3. namespace Ryujinx.HLE.FileSystem
  4. {
  5. interface IFileSystemProvider
  6. {
  7. long CreateFile(string name, long size);
  8. long CreateDirectory(string name);
  9. long RenameFile(string oldName, string newName);
  10. long RenameDirectory(string oldName, string newName);
  11. DirectoryEntry[] GetEntries(string path);
  12. DirectoryEntry[] GetDirectories(string path);
  13. DirectoryEntry[] GetFiles(string path);
  14. long DeleteFile(string name);
  15. long DeleteDirectory(string name, bool recursive);
  16. bool FileExists(string name);
  17. bool DirectoryExists(string name);
  18. long OpenFile(string name, out IFile fileInterface);
  19. long OpenDirectory(string name, int filterFlags, out IDirectory directoryInterface);
  20. string GetFullPath(string name);
  21. long GetFreeSpace(ServiceCtx context);
  22. long GetTotalSpace(ServiceCtx context);
  23. }
  24. }