Example #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);
        }
Example #2
0
 public void CreateFile(string path, long size, CreateFileOptions options) => throw new NotSupportedException();
Example #3
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     FileSystem.CreateFile(path, size, options);
 }
Example #4
0
 protected abstract Result DoCreateFile(U8Span path, long size, CreateFileOptions option);
Example #5
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     throw new System.NotImplementedException();
 }
Example #6
0
 public void CreateFile(string path, long size, CreateFileOptions options) => ThrowHelper.ThrowResult(ResultFs.UnsupportedOperationModifyPartitionFileSystem);
Example #7
0
        public void CreateFile(string path, long size, CreateFileOptions options)
        {
            path = PathTools.Normalize(path);

            ParentFileSystem.CreateFile(ResolveFullPath(path), size, options);
        }
Example #8
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     SaveDataFileSystemCore.CreateFile(path, size, options);
 }
Example #9
0
 protected abstract Result CreateFileImpl(U8Span path, long size, CreateFileOptions options);
Example #10
0
 protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options)
 {
     throw new NotImplementedException();
 }
Example #11
0
 protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options) => ResultFs.UnsupportedOperationModifyReadOnlyFileSystem.Log();
Example #12
0
 protected override Result DoCreateFile(U8Span path, long size, CreateFileOptions option) =>
 BaseFileSystem.Target.CreateFile(path, size, option);
Example #13
0
 public Result CreateFile(U8Span path, long size, CreateFileOptions options)
 {
     return(FileSystem.CreateFile(path, size, options));
 }
Example #14
0
 public void CreateFile(string path, long size, CreateFileOptions options)
 {
     CreateFile(path, size, options, new byte[0x20]);
 }
 protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options) => ResultFs.UnsupportedOperation.Log();
Example #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));
 }