DirectoryFingerPrinting.CLI.Library 1.0.1

dotnet add package DirectoryFingerPrinting.CLI.Library --version 1.0.1                
NuGet\Install-Package DirectoryFingerPrinting.CLI.Library -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DirectoryFingerPrinting.CLI.Library" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DirectoryFingerPrinting.CLI.Library --version 1.0.1                
#r "nuget: DirectoryFingerPrinting.CLI.Library, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DirectoryFingerPrinting.CLI.Library as a Cake Addin
#addin nuget:?package=DirectoryFingerPrinting.CLI.Library&version=1.0.1

// Install DirectoryFingerPrinting.CLI.Library as a Cake Tool
#tool nuget:?package=DirectoryFingerPrinting.CLI.Library&version=1.0.1                

logo

License: GPL v3 Release NuGet

DirectoryFingerPrinting.CLI.Library

This library provides types and methods for parsing specific arguments used by "DirectoryFingerPrinting.CLI" (dfp.exe), comparing two file-metadata, exporting reports in CSV, JSON or XML, help text etc., which are used by the cli application "dpf.exe" and you can find in my other repository "DirectoryFingerPrinting.CLI".

Parameters

Following parameters are currently parsed, recognized and in use:

Parameter Examples (using short names)
--assemblies-only dfp -ao --directory .\
--directory dfp --directory .\
--ignore-timestamps dfp -its -d .\
--ignore-size dfp -is -d .\
--ignore-creation-date dfp -icd -d .\
--ignore-last-modification dfp -ilm -d .\
--ignore-last-access dfp -ila -d .\
--ignore-version dfp -iv -d .\
--ignore-checksum dfp -ics -d .\
--ignore-hidden-files dfp -ihf -d .\
--ignore-access-errors dfp -iae -d .\
--ignore-case dfp -ic -d .\
--recursive dfp -r -d .\
--positive-list dfp -p -d .\ -x "json,txt,xml,yaml"
--negative-list dfp -n -d .\ -x "log,md" -ihf
--extensions dfp -x "json,txt,xml,yaml" -d .\
--use-crc32 dfp -crc32 -d .\
--use-md5 dfp -md5 -d .\
--use-sha1 dfp -d .\ -sha1
--use-sha256 dfp -d .\ -sha256
--use-sha512 dfp -d .\ -sha512
--report-essential dfp -re -d .\
--report-informative dfp -ri -d .\
--report-verbose dfp -rv -d .\
--print-colored dfp -pc -d .\
--no-header dfp -nh -d .\
--no-format dfp -nf -d .\
--print-sorted-ascendent dfp -asc -d .\
--print-sorted-descendent dfp -desc -d .\
--print-only-filename dfp -pof -d .\
--save dfp -s "C:\MyDFP Files\Test" -d "C:\MyDir" --recursive
--format-dfp dfp -dfp "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-xml dfp -xml "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-json dfp -json "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-csv dfp -csv "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--compare-directories dfp -cd "C:\MyDir1" "C:\MyDir2"
--compare-fingerprints dfp -cf "temp\fingerprint1.dfp" "temp\fingerprint2.json"
--compare dfp -c "temp\fingerprint.dfp" "C:\MyDir"
--use-color dfp -pc -d .\
--load-options dfp -lo "options.txt" -d .\
--save-options dfp -so "options.txt" -d .\
--versions dfp --versions
--checksums dfp --checksums
--sizes dfp --sizes
--help dfp -h
--version dfp -v

Examples for using parameters

Parameter (long name) Examples (using short name)
--assemblies-only dfp -ao --directory C:\myDir
--directory dfp -d "C:\My Personal Directory"
--ignore-timestamps dfp -its -d .\
--ignore-size dfp -is -d ..\
--ignore-creation-date dfp -icd -d .\
--ignore-last-modification dfp -ilm -d .\
--ignore-last-access dfp -ila -d .\
--ignore-version dfp -iv -d .\
--ignore-checksum dfp -ics -d .\
--ignore-hidden-files dfp -ihf -d .\
--ignore-access-errors dfp -iae -d .\
--ignore-case dfp -ic -d .\
--recursive dfp -r -d .\
--positive-list dfp -p -d .\ -x "json,txt,xml,yaml"
--negative-list dfp -n -d .\ -x "log,md" -ihf
--extensions dfp -x "json,txt,xml,yaml" -d .\
--use-crc32 dfp -crc32 -d .\
--use-md5 dfp -md5 -d .\
--use-sha1 dfp -d .\ -sha1
--use-sha256 dfp -d .\ -sha256
--use-sha512 dfp -d .\ -sha512
--report-essential dfp -re -d .\
--report-informative dfp -ri -d .\
--report-verbose dfp -rv -d .\
--print-colored dfp -pc -d .\
--no-header dfp -nh -d .\
--no-format dfp -nf -d .\
--print-sorted-ascendent dfp -asc -d .\
--print-sorted-descendent dfp -desc -d .\
--print-only-filename dfp -pof -d .\
--save dfp -s "C:\MyDFP Files\Test" -d "C:\MyDir" --recursive
--format-dfp dfp -dfp "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-xml dfp -xml "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-json dfp -json "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--format-csv dfp -csv "C:\MyDFP Files\Test" -d "C:\MyDir" -r
--compare-directories dfp -cd "C:\MyDir1" "C:\MyDir2"
--compare-fingerprints dfp -cf "temp\fingerprint1.dfp" "temp\fingerprint2.json"
--compare dfp -c "temp\fingerprint.dfp" "C:\MyDir"
--use-color dfp -pc -d .\
--load-options dfp -lo "options.txt" -d .\
--save-options dfp -so "options.txt" -d .\
--versions dfp --versions
--checksums dfp --checksums
--sizes dfp --sizes
--help dfp -h
--version dfp -v

Error codes

Following error codes (integer) are returned after cli executable has terminated. You can output them in prompt/cmd by:

echo %errorlevel%
Error Code Description
0 OK (no error).
1 No parameters.
2 Missing parameter.
3 Unknown parameter.
4 Internal error.
5 Illegal value.
6 Single parameter.
7 File already exists.
8 Writing fingerprint file failed.
9 File not found.
10 Directory not found.
11 Calculate, save, and compare at once are not provided.
12 Illegal/Unknown fingerprint file extension.
13 Unequal hashsum algorithms.
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 80 12/11/2024
1.0.0-beta 100 4/2/2024
1.0.0-alpha 96 4/1/2024

Version 1.0.1