IFileSystemProvider.cs 1.0 KB

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