Skip to main content

Next consecutive filename in folder

Project description

Next consecutive filename in folder

# Tested with:
# Python 3.9.13
# Windows 10

$pip install get-consecutive-filename

from get_consecutive_filename import get_free_filename
# What is it for?
# You have a folder "F:\testfiles" with 2 files "00000.txt", "00001.txt"
# and you want to get the next consecutive filename.

fname = get_free_filename(folder="f:\\testfiles", fileextension=".txt", leadingzeros=5)
print(fname)
# f:\testfiles\00002.txt
	

Project details


Release history Release notifications | RSS feed

This version

0.10

Download files

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

Source Distribution

get_consecutive_filename-0.10.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

get_consecutive_filename-0.10-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file get_consecutive_filename-0.10.tar.gz.

File metadata

File hashes

Hashes for get_consecutive_filename-0.10.tar.gz
Algorithm Hash digest
SHA256 a8c07d94e6150ba0f35632c18861d5fb57c9ab80bf843be253734201b6b55575
MD5 67b462c84db46db278f20977f69082ee
BLAKE2b-256 cdf412d2c39b5dda7f2d7f4e9292c1ec9aa3f67b95883eb703c445dc4479cb98

See more details on using hashes here.

File details

Details for the file get_consecutive_filename-0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for get_consecutive_filename-0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b8f701c34bd697b69da2c038a833df271d3cdb16c5c7e10eefc3beaf85f93fdc
MD5 07ba9889e718ae9f346bae7b6a651ba0
BLAKE2b-256 7a393ebef5da0d10db51e900086947f5c2e8c76ab1328f3429705aa6e04f70fb

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