Esempio n. 1
0
        public static void CreateOrOverwriteFile(this IFileSystem fs, string path, long size, CreateFileOptions options)
        {
            path = PathTools.Normalize(path);

            if (fs.FileExists(path))
            {
                fs.DeleteFile(path);
            }

            fs.CreateFile(path, size, CreateFileOptions.None);
        }
Esempio n. 2
0
 public void CreateFile(string path, long size, CreateFileOptions options) => throw new NotSupportedException();
Esempio n. 3
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     FileSystem.CreateFile(path, size, options);
 }
Esempio n. 4
0
 protected abstract Result DoCreateFile(U8Span path, long size, CreateFileOptions option);
Esempio n. 5
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     throw new System.NotImplementedException();
 }
Esempio n. 6
0
 public void CreateFile(string path, long size, CreateFileOptions options) => ThrowHelper.ThrowResult(ResultFs.UnsupportedOperationModifyPartitionFileSystem);
Esempio n. 7
0
        public void CreateFile(string path, long size, CreateFileOptions options)
        {
            path = PathTools.Normalize(path);

            ParentFileSystem.CreateFile(ResolveFullPath(path), size, options);
        }
Esempio n. 8
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     SaveDataFileSystemCore.CreateFile(path, size, options);
 }
Esempio n. 9
0
 protected abstract Result CreateFileImpl(U8Span path, long size, CreateFileOptions options);
Esempio n. 10
0
 protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options)
 {
     throw new NotImplementedException();
 }
Esempio n. 11
0
 protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options) => ResultFs.UnsupportedOperationModifyReadOnlyFileSystem.Log();
Esempio n. 12
0
 protected override Result DoCreateFile(U8Span path, long size, CreateFileOptions option) =>
 BaseFileSystem.Target.CreateFile(path, size, option);
Esempio n. 13
0
 public Result CreateFile(U8Span path, long size, CreateFileOptions options)
 {
     return(FileSystem.CreateFile(path, size, options));
 }
Esempio n. 14
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     CreateFile(path, size, options, new byte[0x20]);
 }
Esempio n. 15
0
 protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options) => ResultFs.UnsupportedOperation.Log();
Esempio n. 16
0
 protected override Result DoCreateFile(U8Span path, long size, CreateFileOptions option)
 {
     using var scopedLayoutType = new ScopedStorageLayoutTypeSetter(StorageFlag);
     return(BaseFileSystem.Target.CreateFile(path, size, option));
 }