public void CleanDirectoryRecursively(string path) { string fullPath = GetFullPath(PathTools.Normalize(path)); lock (Locker) { BaseFs.CleanDirectoryRecursively(fullPath); } }
protected override Result CleanDirectoryRecursivelyImpl(string path) { string fullPath = GetFullPath(PathTools.Normalize(path)); lock (Locker) { return(BaseFs.CleanDirectoryRecursively(fullPath)); } }
protected override Result DoCleanDirectoryRecursively(U8Span path) { Unsafe.SkipInit(out FsPath fullPath); Result rc = ResolveFullPath(fullPath.Str, path); if (rc.IsFailure()) { return(rc); } lock (Locker) { return(BaseFs.CleanDirectoryRecursively(fullPath)); } }
protected override Result DoCleanDirectoryRecursively(U8Span path) { FsPath fullPath; unsafe { _ = &fullPath; } // workaround for CS0165 Result rc = ResolveFullPath(fullPath.Str, path); if (rc.IsFailure()) { return(rc); } lock (Locker) { return(BaseFs.CleanDirectoryRecursively(fullPath)); } }