Directory.Deduplicate.Cli
1.0.0
dotnet tool install --global Directory.Deduplicate.Cli --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Directory.Deduplicate.Cli --version 1.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Directory.Deduplicate.Cli&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Directory.Deduplicate.Cli --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Directory.Deduplicate
A CLI tool to find and remove duplicate files inside a directory.
Installation
Install as a global .NET tool:
dotnet tool install --global Directory.Deduplicate.Cli
Usage
Usage:
dedupe <directory> [options]
Arguments:
<directory> Directory to scan for duplicates
Options:
--sort-by <ModifiedTime|Name> (REQUIRED)
Property to sort by when determining the file copy to keep
--sort-direction <Ascending|Descending> (REQUIRED)
Sort direction when determining the file copy to keep. The first file in the sorted list will be kept
--force
Delete duplicate files. A dry run is performed without this option specified [default: False]
-r, --recursive
Scan sub-directories recursively [default: False]
-v, --verbose
Print file attributes on match [default: False]
--version
Show version information
-?, -h, --help
Show help and usage information
Examples
Find and delete all duplicates under the
photos
folder and its sub-folders, keeping the oldest file:dedupe photos --recursive --force --sort-by ModifiedTime --sort-direction Ascending
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 102 | 10/22/2024 |