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
	

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

If you're not sure about the file name format, learn more about wheel file names.

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

  • Download URL: get_consecutive_filename-0.10.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

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.

Release history Release notifications | RSS feed

This release

0.10 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page