protected override Result DoGetFreeSpaceSize(out long freeSpace, U8Span path)
        {
            UnsafeHelpers.SkipParamInit(out freeSpace);

            Unsafe.SkipInit(out FsPath fullPath);

            Result rc = ResolveFullPath(fullPath.Str, path);

            if (rc.IsFailure())
            {
                return(rc);
            }

            lock (Locker)
            {
                return(BaseFs.GetFreeSpaceSize(out freeSpace, fullPath));
            }
        }
        protected override Result DoGetFreeSpaceSize(out long freeSpace, U8Span path)
        {
            freeSpace = default;

            FsPath fullPath;

            unsafe { _ = &fullPath; } // workaround for CS0165

            Result rc = ResolveFullPath(fullPath.Str, path);

            if (rc.IsFailure())
            {
                return(rc);
            }

            lock (Locker)
            {
                return(BaseFs.GetFreeSpaceSize(out freeSpace, fullPath));
            }
        }
Esempio n. 3
0
 protected override Result DoGetFreeSpaceSize(out long freeSpace, U8Span path)
 {
     return(BaseFs.GetFreeSpaceSize(out freeSpace, path));
 }