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); }
public void CreateFile(string path, long size, CreateFileOptions options) => throw new NotSupportedException();
public void CreateFile(string path, long size, CreateFileOptions options) { FileSystem.CreateFile(path, size, options); }
protected abstract Result DoCreateFile(U8Span path, long size, CreateFileOptions option);
public void CreateFile(string path, long size, CreateFileOptions options) { throw new System.NotImplementedException(); }
public void CreateFile(string path, long size, CreateFileOptions options) => ThrowHelper.ThrowResult(ResultFs.UnsupportedOperationModifyPartitionFileSystem);
public void CreateFile(string path, long size, CreateFileOptions options) { path = PathTools.Normalize(path); ParentFileSystem.CreateFile(ResolveFullPath(path), size, options); }
public void CreateFile(string path, long size, CreateFileOptions options) { SaveDataFileSystemCore.CreateFile(path, size, options); }
protected abstract Result CreateFileImpl(U8Span path, long size, CreateFileOptions options);
protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options) { throw new NotImplementedException(); }
protected override Result CreateFileImpl(U8Span path, long size, CreateFileOptions options) => ResultFs.UnsupportedOperationModifyReadOnlyFileSystem.Log();
protected override Result DoCreateFile(U8Span path, long size, CreateFileOptions option) => BaseFileSystem.Target.CreateFile(path, size, option);
public Result CreateFile(U8Span path, long size, CreateFileOptions options) { return(FileSystem.CreateFile(path, size, options)); }
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();
protected override Result DoCreateFile(U8Span path, long size, CreateFileOptions option) { using var scopedLayoutType = new ScopedStorageLayoutTypeSetter(StorageFlag); return(BaseFileSystem.Target.CreateFile(path, size, option)); }