Delete Files/Folder

Asked 2 years ago, Updated 2 years ago, 122 views

Please tell me the code to delete the file/folder I'm using Windows XP

python windows-xp file-io

2022-09-22 11:05

1 Answers

OSError occurs when path is a directory (folder). If you want to erase a file that is currently in use

OSError occurs when directory is not empty

However, path should not be a symbolic link such as a shortcut. Ignore the error when ignore_errors is True (default is False)


2022-09-22 11:05

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.