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
Node version (or tell us if you're using electron or some other framework): 12.18
ShellJS version (the most recent version/Github branch you see the bug on): 0.8.4
Operating system: Linux
Description of the bug:
When I'm in the folder (via cd) that I want to remove and I executed the shell.rm() the folder. like /tmp/testfolder. I can't change the directory towards that root-folder, so in this case: shell.cd('/tmp') won't work anymore!?
Error I would get it:
cd: not a directory: /tmp
at Object.error (/path_to_project/node_modules/shelljs/src/common.js:110:27)
at Object._cd (/path_to_project/node_modules/shelljs/src/cd.js:35:21)
at Object.cd (/path_to_project/node_modules/shelljs/src/common.js:384:25)
Yes, the /tmp folder still exists! So I'm 100% sure that folder is NOT removed.
Node version (or tell us if you're using electron or some other framework): 12.18
ShellJS version (the most recent version/Github branch you see the bug on): 0.8.4
Operating system: Linux
Description of the bug:
When I'm in the folder (via cd) that I want to remove and I executed the
shell.rm()
the folder. like/tmp/testfolder
. I can't change the directory towards that root-folder, so in this case:shell.cd('/tmp')
won't work anymore!?Error I would get it:
Yes, the
/tmp
folder still exists! So I'm 100% sure that folder is NOT removed.Example ShellJS command to reproduce the error:
Please, help!?
The text was updated successfully, but these errors were encountered: