Skip to main content

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
	

Metadata

Release files for get-consecutive-filename 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for get-consecutive-filename 0.10
File Size Uploaded
get_consecutive_filename-0.10.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for get-consecutive-filename 0.10
File Interpreter ABI Platform
get_consecutive_filename-0.10-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / get_consecutive_filename-0.10.tar.gz

Download URL get_consecutive_filename-0.10.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a8c07d94e6150ba0f35632c18861d5fb57c9ab80bf843be253734201b6b55575
BLAKE2b-256 checksum
How to use checksums
cdf412d2c39b5dda7f2d7f4e9292c1ec9aa3f67b95883eb703c445dc4479cb98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / get_consecutive_filename-0.10-py3-none-any.whl

Download URL get_consecutive_filename-0.10-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8f701c34bd697b69da2c038a833df271d3cdb16c5c7e10eefc3beaf85f93fdc
BLAKE2b-256 checksum
How to use checksums
7a393ebef5da0d10db51e900086947f5c2e8c76ab1328f3429705aa6e04f70fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page