FileSystem.NotSupported.cs 2.4 KB

123456789101112131415161718192021222324252627
  1. namespace System.IO
  2. {
  3. internal static partial class FileSystem
  4. {
  5. public static void CopyFile(string sourceFullPath, string destFullPath, bool overwrite) => throw new PlatformNotSupportedException ();
  6. public static void ReplaceFile(string sourceFullPath, string destFullPath, string destBackupFullPath, bool ignoreMetadataErrors) => throw new PlatformNotSupportedException ();
  7. public static void MoveFile(string sourceFullPath, string destFullPath) => throw new PlatformNotSupportedException ();
  8. public static void DeleteFile(string fullPath) => throw new PlatformNotSupportedException ();
  9. public static void CreateDirectory(string fullPath) => throw new PlatformNotSupportedException ();
  10. public static void MoveDirectory(string sourceFullPath, string destFullPath) => throw new PlatformNotSupportedException ();
  11. public static void RemoveDirectory(string fullPath, bool recursive) => throw new PlatformNotSupportedException ();
  12. public static bool DirectoryExists(string fullPath) => throw new PlatformNotSupportedException ();
  13. public static bool DirectoryExists(ReadOnlySpan<char> fullPath) => throw new PlatformNotSupportedException ();
  14. public static bool FileExists(string fullPath) => throw new PlatformNotSupportedException ();
  15. public static bool FileExists(ReadOnlySpan<char> fullPath) => throw new PlatformNotSupportedException ();
  16. public static FileAttributes GetAttributes(string fullPath) => throw new PlatformNotSupportedException ();
  17. public static void SetAttributes(string fullPath, FileAttributes attributes) => throw new PlatformNotSupportedException ();
  18. public static DateTimeOffset GetCreationTime(string fullPath) => throw new PlatformNotSupportedException ();
  19. public static void SetCreationTime(string fullPath, DateTimeOffset time, bool asDirectory) => throw new PlatformNotSupportedException ();
  20. public static DateTimeOffset GetLastAccessTime(string fullPath) => throw new PlatformNotSupportedException ();
  21. public static void SetLastAccessTime(string fullPath, DateTimeOffset time, bool asDirectory) => throw new PlatformNotSupportedException ();
  22. public static DateTimeOffset GetLastWriteTime(string fullPath) => throw new PlatformNotSupportedException ();
  23. public static void SetLastWriteTime(string fullPath, DateTimeOffset time, bool asDirectory) => throw new PlatformNotSupportedException ();
  24. public static string[] GetLogicalDrives() => throw new PlatformNotSupportedException ();
  25. }
  26. }