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 movefile-restart or pip3 install movefile-restart, depending on your configuration of Python and Pip.

Usage

To import, use 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.6.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

movefile_restart-0.6.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: movefile-restart-0.6.0.tar.gz
  • Upload date:
  • Size: 3.9 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.6.0.tar.gz
Algorithm Hash digest
SHA256 a60ef4402340805ec66098f06e9d4e6df5b693bedb18eaf629a9f7bf2032773b
MD5 47bcc5d5341fc68c9e004345aa4b4185
BLAKE2b-256 03ddfe75130050443dadb64238e1fc23543e3a55c2a1bf8dcf0ecb34873ed365

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: movefile_restart-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed48b2f793d1d2c4afbdd7573640b87bdcfa9b7d2ab3a4fe87d912f06e4fcbe4
MD5 0f544a302d79478af972283b20d16f45
BLAKE2b-256 f4593954905d4bfc566e69b636cadb6e4989cf41d89cbe67051bacc0ea3de41d

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