Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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 -dir "C:\path\to\folder" -silent
  2. Linux: .\ -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

Release history Release notifications

This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
maxlength_folder-0.2.1-py2.py3-none-any.whl (5.6 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Mar 1, 2017
maxlength_folder-0.2.1.tar.gz (3.7 kB) Copy SHA256 hash SHA256 Source None Mar 1, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page