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.0.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.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sequential_rename-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 affff44bb80aea2586195748809307939a4f0aae295ab22b4a5e63618252ce33
MD5 eaf31983c9640bee0c5433b1f7fc6bd7
BLAKE2b-256 1a9c4cff3ba589ae47210137da856be13a4904fb25ff62c589eb1e6481b2d08f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequential_rename-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 539867a1a85b9b33f9e6497e60298e78be391e750bf7608da2ea39a1f77ae400
MD5 ffc33f8a28814e203f5c41f97a98ab01
BLAKE2b-256 fb2c33647acf23a90375d0fa936b4dc7404eb579dc4b632d002136b2d68a23a0

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