Skip to main content

A small library for Windows to queue files to be moved, deleted, or renamed on reboot.

Project description

python-movefile-restart

A small library to move, delete, and rename files at Windows restart time.

Installation

pip install -e . or pip3 install -e ., depending on your configuration of Python and Pip.

Usage

To import, use from movefile_restart import movefile_restart

From there, you have a couple functions at your disposal:

movefile_restart.DeleteFile(file_path): Queues file_path for deletion.

movefile_restart.MoveFile(from_path, to_path) or movefile_restart.RenameFile(from_path, to_path): Moves the file from from_path to to_path.

movefile_restart.GetFileOperations(): Get a list of tuples containing the source and destination of all file movings queued.

movefile_restart.PrintFileOperations(): Print a list of file operations that are scheduled to occur during reboot.

Current Limitations

  • Files cannot currently be un-queued.
  • Some weird cases such as: if you're moving a.txt to b.txt, you cannot queue a deletion for b.txt after your file move queue. You would have to restart the computer so b.txt exists before deleting it.
  • Due to using the Windows Registry for handling these kinds of operations, no other operating system is supported, nor is there planned support.

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

movefile-restart-0.4.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

movefile_restart-0.4.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file movefile-restart-0.4.0.tar.gz.

File metadata

  • Download URL: movefile-restart-0.4.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for movefile-restart-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9f8b1ae7914fc14f74db3d8a3b0176dbaf027fbea3aed328807522430d1b7a1e
MD5 f399b065b0873acea94befa22c8d1d5d
BLAKE2b-256 cee939bea218937fb6d6fc45d2636cca64f015e8bddbb750ad05fbdd53fe58cd

See more details on using hashes here.

Provenance

File details

Details for the file movefile_restart-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: movefile_restart-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for movefile_restart-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4df4218e0e63d627cb985f038a49ead5f78a3bcef359ba10cdcd7757562d829
MD5 8c5d1752a48589d4c9ac84a89a02b002
BLAKE2b-256 f7d00fad75dacdd9a7761656833a7bf8c153b3ceb3cfac804c21191ad9259e0d

See more details on using hashes here.

Provenance

Supported by

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