[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rmtree message

On Wednesday, September 13, 2017 at 12:06:20 PM UTC-7, Larry.... at gmail.com wrote:
> I have a script that creates a tmp dir, create a lot of files in it,
> and when done, does a rmtree on the dir. When it does that I get this
> message:
> shell-init: error retrieving current directory: getcwd: cannot access
> parent directories: No such file or directory
> But no exception is thrown. How can I determine why I get this message?

I usually see that message when I am in a directory in the shell but it has already been deleted by another process.  

Make sure the directory exists.  Is another part of your script deleting the root directory while rmtree is running?  Or something of the like.