Skip to content

Issues with file handling #9

Description

@donnos

faced this error,

--- SYSTEM partition mounted
--- Updating system partition...
--- Removing existing registered folder...
ERROR: Failed to update system partition. [WinError 145] The directory is not empty: 'D:\Contents\registered'
Traceback (most recent call last):
File "E:\NAND-Fix-Pro-v2.1.1\nandfixpro.py", line 3381, in _selective_copy_system_contents_level1
if not safe_remove_directory(registered_dest):
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "E:\NAND-Fix-Pro-v2.1.1\nandfixpro.py", line 58, in safe_remove_directory
shutil.rmtree(directory_path)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
File "C:\Users\owen\AppData\Local\Programs\Python\Python313\Lib\shutil.py", line 790, in rmtree
return _rmtree_unsafe(path, onexc)
File "C:\Users\owen\AppData\Local\Programs\Python\Python313\Lib\shutil.py", line 635, in _rmtree_unsafe
onexc(os.rmdir, path, err)
~~~~~^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\owen\AppData\Local\Programs\Python\Python313\Lib\shutil.py", line 631, in _rmtree_unsafe
os.rmdir(path)
~~~~~~~~^^^^^^
OSError: [WinError 145] The directory is not empty: 'D:\Contents\registered'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions