Skip to content

ClouDevops101/Duplicated-file-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Duplicated-file-detector

I am a codementorDonate

Description : A quick python script to free up disk space by comparing the sha1sum of all file existing in differents folder.

HOW It WORKS

python duplicates-detector-args.py -F /Users/heddar/ /Volumes/Data -E lib

CLI PARAMETERS

-F  or --Folders   : folders to fetch
-E  or --exclude   : Folder or subfolder to not fetch
-S  or --file-size : Search file by size
-d  or --debug     : Debug mode
-v  or --verbose"  : verbose mode
-q or --quiet"     : Silent mode

Requierements

The scipt is built with standard library

Installation

Add the script to a user who've got the right access

Run it

The output shows the skipped file or folder specified within the exclude parameter -E

python duplicates-detector-args.py -F /Users/heddar/ /Volumes/Data -E lib
Scanning /USR/XXXX/...
Scanning /USR/XXXX/.eclipse...
Scanning /USR/XXXX/.eclipse/org.eclipse.oomph.jreinfo...
Skipping .......... /USR/XXXX/.eclipse/1846248522_macosx_cocoa_x86_64/configuration/org.eclipse.osgi/143/0/.cp/libswt-pi-cocoa-4758.jnilib Found lib

Known issues

the -E (exclude parameter ) may show some limites due the for loop, a fix is planed to avoid this issue

Caution

Releases

No releases published

Packages

No packages published

Languages