Skip to main content

Python filename length script

Project description

fnlength

fnlength

Python filename length script. The program enumerates the file in subdirectories and shortens long filenames to the specified number of characters. function will create log file in top dir with name log_%Y%m%d.log

Setup

https://pypi.org/project/fnlength/

pip install fnlength

Example1:

import fnlength 

target = fnlength.fnlength()

# default 25
target.MAX_FILENAME_LENGTH = 30             

target.start()                              

Example2:

from fnlength import FileNameLength

target = FileNameLength()

# default 25
target.MAX_FILENAME_LENGTH = 35

target.start()         

Documentation

https://best-itpro.ru/news/fnlength/

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

fnlength-1.0.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

fnlength-1.0.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

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