You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for /d /r "%CD%" %%d in (%1) do @if exist "%%d" rd /s/q "%%d"
i.e. recursively iterate from %CD%, matching only directories into %%d, and then delete the directory (including subdirectories, quietly/without prompting). The if exist is there since the for-loop will delete parent directories before recursing into (now non-existent) sub-directories.
rmvirtualenv then tries to delete the directory tree, again, by itself calling rmdir /s /q:
folder_delete.bat
(https://github.com/davidmarble/virtualenvwrapper-win/blob/master/scripts/folder_delete.bat) is only used byrmvirtualenv.bat
, and boils down to this line:i.e. recursively iterate from
%CD%
, matching only directories into%%d
, and then delete the directory (including subdirectories, quietly/without prompting). Theif exist
is there since the for-loop will delete parent directories before recursing into (now non-existent) sub-directories.rmvirtualenv
then tries to delete the directory tree, again, by itself callingrmdir /s /q
:(https://github.com/davidmarble/virtualenvwrapper-win/blob/master/scripts/rmvirtualenv.bat#L42)
Changing it to read
seems to work well.
The text was updated successfully, but these errors were encountered: