public void CleanDirectoryRecursively(string path) { path = PathTools.Normalize(path); IDirectory dir = OpenDirectory(path, OpenDirectoryMode.All); FileSystemExtensions.CleanDirectoryRecursivelyGeneric(dir); }
protected override Result CleanDirectoryRecursivelyImpl(string path) { path = PathTools.Normalize(path); FileSystemExtensions.CleanDirectoryRecursivelyGeneric(this, path); return(Result.Success); }
protected override Result DoCleanDirectoryRecursively(U8Span path) { Unsafe.SkipInit(out FsPath normalizedPath); Result rc = PathTool.Normalize(normalizedPath.Str, out _, path, false, false); if (rc.IsFailure()) { return(rc); } FileSystemExtensions.CleanDirectoryRecursivelyGeneric(this, normalizedPath.ToString()); return(Result.Success); }
protected override Result DoCleanDirectoryRecursively(U8Span path) { FsPath normalizedPath; unsafe { _ = &normalizedPath; } // workaround for CS0165 Result rc = PathTool.Normalize(normalizedPath.Str, out _, path, false, false); if (rc.IsFailure()) { return(rc); } FileSystemExtensions.CleanDirectoryRecursivelyGeneric(this, normalizedPath.ToString()); return(Result.Success); }