That looks like a git bash session on Windows, or a WSL session.
If you can not easily identify the process which keeps an handle to that file, preventing another program (like
git) to access it, I would:
- restart my git bash or WSL2 session
- try to add
img/cake.jpgbefore opening any IDE.
Since it is an Ubuntu session, I would also try, for tesdting:
sudo chmod -R 755 img
That way, the folder
img will be accessible.
CLICK HERE to find out more related problems solutions.