Skip to main content

A small package for sequentially renaming files with the same name.

Project description

Rename-Sequential-Files

A small rename function I created to handle documents that have the same file name during automated copy jobs. This function will allow the files to be copied by just appending a (#) to the end of the file name similar to how file systems do so. You need to pass the new directory, current file name, and the files extension and the function will return the new name with (#) if no file with the same name already exists.

For example:

new_doc_name = seq_rename(r'C:\Users\[USERNAME]\Documents', 'test', '.csv')

Project details


Download files

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

Source Distribution

sequential_rename-1.0.1.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

sequential_rename-1.0.1-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file sequential_rename-1.0.1.tar.gz.

File metadata

  • Download URL: sequential_rename-1.0.1.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for sequential_rename-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7a3b1e69e648997ae85f60f8646b6bda92e67f3ade8b0fd0e935dcfc8c7da7f8
MD5 b5e0646bde0aeeea5718a8bad2c0d521
BLAKE2b-256 1eb26c94cc0c1df56b344abe1a5db85b16ed5d399a4c9888936b13eeaeba9c93

See more details on using hashes here.

File details

Details for the file sequential_rename-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sequential_rename-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b9df945674c86be74e692aa3e90df469cff20a9a6797338fef25336a7d7682f
MD5 e902e415a57d3ec1c580fe4d1d3a89d5
BLAKE2b-256 a1511e09caed897454554b5a07b5e7a623ebf84a0f4e5fc29a67fbafd0573f10

See more details on using hashes here.

Supported by

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