A tool to fix and shorten paths on Linux (4096 chars max path length) & Mac so that they can be unzipped, used, copied, etc. on Windows which has

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-09-20 22:30:07

A tool to fix and shorten paths on Linux (4096 chars max path length) & Mac so that they can be unzipped, used, copied, etc. on Windows which has an insanely small max path length of ~256 chars.

This allows you to easily send documents and zipped up folders from your Linux computer to Windows friends, clients, or workers without having to worry about the path length being too long for them to unzip or use the files, or the files having illegal chars or symlinks in them.

As a safety rule, back up your original directory into a new location before running this program. I am not responsible for data loss.

Note that prior to installation, you must use path/to/path_shortener.py to run the program. If you are in the directory where it is located, use ./path_shortener.py. After installation, you can use simply path_shortener to run the program.

Copy path/to/test_paths to a new directory called test_paths_shortened, so that it does not modify your original files. This also removes symlinks.

Leave a Comment