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

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
relocate-2.1.0.tar.gz 2.9 kB 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

Release history Release notifications | RSS feed

This release

2.1.0 This release

1 release file

2.0.0

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

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