Fs-walker
Walk your file system to check duplicate or missing files
You need space on your hard drive ?
Fs-walker can walk your file system and list all duplicated files you can safely remove as well as the space you can gain.
You want to give a new life to your old hard drive but you're not sure all its content has been saved on your new hard drive ?
Fs-walker can walk your two drives and list all files on the old one that are not present on the new one.
Install
From PyPI
To install Fs-walker from PyPI, just run:
pip install fs-walker
From GitHub
To install Fs-walker from GitHub:
- Run:
git clone https://github.com/hoduche/fs-walker - Inside the newly created fs-walker folder, run (with Python 3 and setuptools):
python setup.py install
Run
As a command
Upon installation, Fs-walker adds two commands to the command line: duplicate and missing.
Running duplicate will:
- List all duplicated files and directories in a root directory passed as the --path (or -p) argument
- Save the duplicate listing as a duplicate_listing.json file in the root directory
- Print the potential space gain in Gigabytes
It can also dump the full listing.json and tree.json files in the root directory with the --dump-listing (or -d) argument. And if a listing.json file is passed as the --path (or -p) argument instead of a root directory, the listing is deserialized from the json file instead of being generated.
Example:
duplicate -p E:/AllPictures -d
Running missing will:
- List all files and directories that are present in an old root directory passed as the --old-path (or -o) argument and that are missing in a new one passed as the --new-path (or -n) argument
- Save the missing listing as a missing_listing.json file in the new root directory
It can also dump the full listing.json and tree.json files in the two root directories with the --dump-listing (or -d) argument. And if a listing.json file is passed as the --old-path (or -o) argument or as the --new-path (or -n) argument, instead of a root directory, the corresponding listing is deserialized from the json file instead of being generated.
Example:
missing -o D:/Pictures -n E:/AllPictures -d
As a Python module
import pathlib
import fs_walker.walker as fsw
folder_path = pathlib.Path('D:/Pictures')
listing, tree = fsw.walk(folder_path)
Metadata
Release files for fs-walker 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fs-walker-0.0.1.tar.gz | 6.6 kB | Without provenance | Details for fs-walker-0.0.1.tar.gz |
Release files / fs-walker-0.0.1.tar.gz
| Download URL | fs-walker-0.0.1.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aa3d97f8e994971a7d41b8daf3019837aa2a415354e5640057d09929ebd5faf6
|
|
BLAKE2b-256 checksum How to use checksums |
9aa94ca80cd9498aa66b880e9b71544b1f3d9efd411a1773f51b3a398a46e7b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Security for fs-walker 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.