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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8c07d94e6150ba0f35632c18861d5fb57c9ab80bf843be253734201b6b55575 |
|
MD5 | 67b462c84db46db278f20977f69082ee |
|
BLAKE2b-256 | cdf412d2c39b5dda7f2d7f4e9292c1ec9aa3f67b95883eb703c445dc4479cb98 |
File details
Details for the file get_consecutive_filename-0.10-py3-none-any.whl
.
File metadata
- Download URL: get_consecutive_filename-0.10-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8f701c34bd697b69da2c038a833df271d3cdb16c5c7e10eefc3beaf85f93fdc |
|
MD5 | 07ba9889e718ae9f346bae7b6a651ba0 |
|
BLAKE2b-256 | 7a393ebef5da0d10db51e900086947f5c2e8c76ab1328f3429705aa6e04f70fb |