Skip to main content

Relocate

Do you want to organise your files?
Then Relocate is here to help you. It will organise your files as per your requirement.

Install the module from your command prompt.
pip install relocate
To import the RELOCATE package, run the following.
import relocate

Now you can group your files, based on the following options.

relocate.relocateNow()

It will organise your files in separate folders, according to month of last modification and then according to extension.

relocate.byMonthCreated()

It will organise your files in separate folders, according to month of creation (for Windows) or according to month of last metadata change (for Unix).

relocate.byYearCreated()

It will organise your files in separate folders, according to year of creation.

relocate.byMonthModified()

It will organise your files in separate folders, according to month of last modification.

relocate.byYearModified()

It will organise your files in separate folders, according to year of last modification.

relocate.byMonthLastAccessed()

It will organise your files in separate folders, according to month of last access.

relocate.byYearLastAccessed()

It will organise your files in separate folders, according to year of last access.

relocate.byExtension()

It will organise your files in separate folders, according to file extension.

relocate.bySize()

It will organise your files in separate folders, according to file size.

relocate.byFirstChar()

It will organise your files in separate folders, according to first character of file name.

Navigate to the RELOCATED folder, and you will get your files in an organised manner.

Do you want to undo the changes?
Then navigate to RELOCATE folder, and run the following.

relocate.undo()

It will undo the changes. You will get all your files in this RELOCATED folder.


For any queries, contact me on LinkedIn


Changelog:

Version 2.1.0

  • Added relocate.undo()

Version 2.0.0

  • Added relocate.byMonthCreated()
  • Added relocate.byYearCreated()
  • Added relocate.byMonthModified()
  • Added relocate.byYearModified()
  • Added relocate.byMonthLastAccessed()
  • Added relocate.byYearLastAccessed()
  • Added relocate.byExtension()
  • Added relocate.bySize()
  • Added relocate.byFirstChar()

Version 1.3.1 , 1.3.0 , 1.2.0

  • Added relocate.relocateNow()
  • Bug Fixed

Metadata

Release files for relocate 2.1.0

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

Source distribution (sdist)

Source distribution for relocate 2.1.0
File Size Uploaded Provenance
relocate-2.1.0.tar.gz 2.9 kB Without provenance Details

Release files / relocate-2.1.0.tar.gz

Download URL relocate-2.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b19fcdb45fcdf8d91d0738ac3f7c5942572d465a70024efa88dd03d5d9c07b04
BLAKE2b-256 checksum
How to use checksums
15c4fb2a3557cadd80c34565fbfeafecf3a042c61d96e8ffbd2033804d01b8cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/2.7.17

Security for relocate 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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