{"id":34082877,"url":"https://github.com/hammy275/python-movefile-restart","last_synced_at":"2026-03-09T08:31:47.369Z","repository":{"id":57443326,"uuid":"317049410","full_name":"hammy275/python-movefile-restart","owner":"hammy275","description":"A Python library to allow the moving, deleting, and renaming of files during a Windows restart.","archived":false,"fork":false,"pushed_at":"2020-12-08T01:37:30.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-16T14:52:47.725Z","etag":null,"topics":["deletefile","movefile","python","windows-restart"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/movefile-restart/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hammy275.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-29T21:47:23.000Z","updated_at":"2020-12-08T01:36:55.000Z","dependencies_parsed_at":"2022-09-05T09:41:02.283Z","dependency_job_id":null,"html_url":"https://github.com/hammy275/python-movefile-restart","commit_stats":null,"previous_names":["hammy3502/python-movefile-restart"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/hammy275/python-movefile-restart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammy275%2Fpython-movefile-restart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammy275%2Fpython-movefile-restart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammy275%2Fpython-movefile-restart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammy275%2Fpython-movefile-restart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hammy275","download_url":"https://codeload.github.com/hammy275/python-movefile-restart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hammy275%2Fpython-movefile-restart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30287825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deletefile","movefile","python","windows-restart"],"created_at":"2025-12-14T12:28:31.575Z","updated_at":"2026-03-09T08:31:47.358Z","avatar_url":"https://github.com/hammy275.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-movefile-restart\n\nA small library to move, delete, and rename files at Windows restart time.\n\n## Installation\n\n`pip install movefile-restart` or `pip3 install movefile-restart`, depending on your configuration of Python and Pip.\n\n## Usage\n\nTo import, use `import movefile_restart`\n\nFrom there, you have a couple functions at your disposal:\n\n`movefile_restart.DeleteFile(file_path, check_conflicts=True)`: Queues `file_path` for deletion.*\n\n`movefile_restart.MoveFile(from_path, to_path, check_conflicts=True)` or `movefile_restart.RenameFile(from_path, to_path)`: Moves the file from `from_path` to `to_path`.*\n\n`movefile_restart.GetFileOperations()`: Get a list of tuples containing the source and destination of all file movings queued.\n\n`movefile_restart.PrintFileOperations()`: Print a list of file operations that are scheduled to occur during reboot.\n\n`movefile_restart.RemoveFileOperation(file_op_index)`: Remove a file operation based on its index from `movefile_restart.GetFileOperations()`.\n\n`movefile_restart.CheckPermissions()`: Check for read/write permissions to the registry keys needed for this library.\n\n*: For both of these functions, the `check_conflicts` parameter determines whether or not to perform checks when moving/deleting to make sure if it can be performed successfully in the case of a conflict. It only checks if there is initially a problem (the file being deleted doesn't exist, the source of the file being moved doesn't exist, or the destination file of a move already exists). Setting `check_conflicts` to False when calling these functions will skip all of these checks.\n\n## Current Limitations\n\n* Due to using the Windows Registry for handling these kinds of operations, no other operating system is supported, nor is there planned support.\n* Some cases can occur where a move/delete can fail. For example, queueing a deletion of file A then queueing a move from file A to file B isn't currently checked for, and will result in the move not occuring (as file A will be deleted before it can be moved).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhammy275%2Fpython-movefile-restart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhammy275%2Fpython-movefile-restart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhammy275%2Fpython-movefile-restart/lists"}