protected override Result DoGetTotalSpaceSize(out long totalSpace, U8Span path) { return(BaseFs.GetTotalSpaceSize(out totalSpace, path)); // FS does: // return ResultFs.UnsupportedOperationReadOnlyFileSystemGetSpace.Log(); }
protected override Result DoGetTotalSpaceSize(out long totalSpace, U8Span path) { UnsafeHelpers.SkipParamInit(out totalSpace); Unsafe.SkipInit(out FsPath fullPath); Result rc = ResolveFullPath(fullPath.Str, path); if (rc.IsFailure()) { return(rc); } lock (Locker) { return(BaseFs.GetTotalSpaceSize(out totalSpace, fullPath)); } }
protected override Result DoGetTotalSpaceSize(out long totalSpace, U8Span path) { totalSpace = default; FsPath fullPath; unsafe { _ = &fullPath; } // workaround for CS0165 Result rc = ResolveFullPath(fullPath.Str, path); if (rc.IsFailure()) { return(rc); } lock (Locker) { return(BaseFs.GetTotalSpaceSize(out totalSpace, fullPath)); } }