8 (499) 346-7733
8 (926) 148-7733
МНОГОКАНАЛЬНЫЕ

FNLength

FNLength

FNLength (filename length)


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
pip install fnlength

Example1:

import fnlength

target = fnlength.FileNameLength()

# 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()


Github: https://github.com/IgorMan2005/fnlength

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



FNLength - простая библиотека python, которая обходит все каталоги, начиная с текущего и сокращает длинные имена файлов до указанной длины MAX_FILENAME_LENGTH.

That's All, Folks!
;)

08.07.2023

Возврат к списку


Строительство теннисных кортов, строительство спортивных площадок по всей России