Skip to main content

Finds all duplicate files in a list of files and folders

Project description

DESCRIPTION

The script finds all duplicate files in a list of files and folders.

You give it a list of files and folders, it takes all files in those folders and compares them to one another to find which ones are the same. It doesn't care about file names, directory structure or the location of the files in that structure. It cares only about bytes - whether or not two files or more are identical in their bytes.

How to use

It works like this:

import fdups
f = fdups.fdups()
f.set(["", "", ...])
f.fdups()

You set a list of files and folders and call fdups().
The list can contain any mixture of files and folders.
If you set a new list of folders it clears the previous result.

Example

>>> import fdups
>>> f = fdups.fdups()
>>> f.set(["C:\\Python27\\Scripts", "C:\\Python27\\Lib\\site-packages\\setuptools"])
>>> f.fdups()
Collecting files
Sorting
Comparing
. . . . . . 
Info:
Total number of files compared:  162
Non duplicate files:  151
Duplicate groups:  4
Total wasted space:  518.0 kB   ( 530465 )

Do you want to see the duplicate groups?
(y for Yes, anything else for No)
y

C:\Python27\Scripts\futurize.exe
C:\Python27\Scripts\pasteurize.exe
C:\Python27\Lib\site-packages\setuptools\cli-32.exe
C:\Python27\Lib\site-packages\setuptools\cli.exe

C:\Python27\Lib\site-packages\setuptools\gui-32.exe
C:\Python27\Lib\site-packages\setuptools\gui.exe

C:\Python27\Scripts\pip.exe
C:\Python27\Scripts\pip2.7.exe
C:\Python27\Scripts\pip2.exe

C:\Python27\Scripts\easy_install-2.7.exe
C:\Python27\Scripts\easy_install.exe

Do you want to see the NON duplicate files? (151 files)
(y for Yes, anything else for No)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fdups-0.0.2.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file fdups-0.0.2.tar.gz.

File metadata

  • Download URL: fdups-0.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/2.7.14

File hashes

Hashes for fdups-0.0.2.tar.gz
Algorithm Hash digest
SHA256 511b28282ac74dbe6ed86fd688dfba504994efb36ca2523af6d15ba0ce72b492
MD5 833d64d30346478277209fa109cb5c4f
BLAKE2b-256 a4706916d09c812c2fd836fdbac6abce8986a9e532ecea32c7724f76e6ba7371

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page