Skip to main content

Handle files and folder which exceeds themaximum length of filesystems

Project description

# Maxlength Folder Eraser It’s a script used to take care of issues regarding folders and files with too many characters

## Tests Tested on Windows10 and Ubuntu16. Works only on Python 3.6+

## Performance The script took about 13 minutes to finish a 250GB repository, with very nested folders (dozens of folder levels) and also files that exceeded the maximum length allowed by the file system.

Unfortunately, we cannot use multiple threads because the recursive process needs to be synchronous, but we can merge from the old listdir function to scandir function (Contained in the OS module - Python 3.6) and make it faster.

# Warning

## Precautions * Already tested on nested folders with files but be aware that there are No Guarantees * This script will rename all files and folders into the -dir parameter, use it very, very, carefully!!!

## Warranty There is no warranty of this script. For more information, read the MIT Licence

# How to Use it 1. Run pip install maxlength_folder

  1. Be sure to be using Python 3.6+ by running python --version on your command prompt

  2. Run the following command:

  1. Windows: python example.py -dir "C:\path\to\folder" -silent

  2. Linux: .\example.py -dir "\path\to\folder" -silent

  • The script is verbose name by default

  • Use `-silent```parameter to use it in quiet mode or just use the `-dir``` parameter to inform the folder

# Log system By default, the filename is maxlength-folder-eraser.log and you can check the process there!

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

maxlength_folder-0.2.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

maxlength_folder-0.2.1-py2.py3-none-any.whl (5.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file maxlength_folder-0.2.1.tar.gz.

File metadata

File hashes

Hashes for maxlength_folder-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2d8c1a4ee264311a6113a7ca3ac7e286517f1a78492f21bc236ddc2b0c62cd45
MD5 89ab4566c533f120e53e92258900cce7
BLAKE2b-256 eea2fa43164a41ff4816f38eb1fb08f9ff0358f7f06817980ddd188921da81ce

See more details on using hashes here.

File details

Details for the file maxlength_folder-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for maxlength_folder-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b5671f77378f4c88fbca0633adf6a2574710bd92ab3d1b7d0d71b323232e8c87
MD5 d420b8ef2daab7d4ee323ee64359f27c
BLAKE2b-256 421b20609625669785ae761533acd7bdc0133ccd85a3922429d228c23617b56c

See more details on using hashes here.

Supported by

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