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.5.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

movefile_restart-0.5.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: movefile-restart-0.5.0.tar.gz
  • Upload date:
  • Size: 3.7 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.5.0.tar.gz
Algorithm Hash digest
SHA256 f8099d181721a73adc1ccc8d2b96cb5e0fb5792dfced185e762c94b0077f93ea
MD5 af7d3e0475b66bdb4f6b47f9241ef3d4
BLAKE2b-256 dbac458d038a0e98b83933f4f6b18e468222f3a5b6aa2f7b24ba15b534824ac8

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: movefile_restart-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 6.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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a6ddeab8bd46b6004d72367e9f4f393d8b907fab9e0ef82de4998d70fcc8b64
MD5 689c5941566253d599204591750a99b1
BLAKE2b-256 50c4ca3bc2ba084cc51bb4d338b047322097d1838073031b87e7ac66ac90b88d

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