EISDIR when running locally
Maxim-Mazurok opened this issue Β· comments
Maxim Mazurok commented
Bug description
After running npx lost-pixel local
it creates current/blog
folder for me.
But on subsequent runs it fails to remove it.
How to reproduce
run locally two times
Expected behavior
No response
Lost Pixel information
lost-pixel logs from CI
Version: 3.8.2
Loading project config ...
Current working directory: /home/maxim/maxim.mazurok.com
Looking for config file: /home/maxim/maxim.mazurok.com/lostpixel.config.(ts|js|cjs|mjs)
β
Found config file: /home/maxim/maxim.mazurok.com/lostpixel.config.ts
π Starting Lost Pixel in 'generateOnly' mode
π Creating shot folders
πΈ Creating shots
Removing 2 files from .lostpixel/current/
β EISDIR: illegal operation on a directory, unlink '.lostpixel/current/blog'
Sending anonymized telemetry data.
Dima Ivashchuk commented
which OS are you on? sounds like a very os specific(permission) problem that I have not seen before π€
Maxim Mazurok commented
Ubuntu 22.04.3 inside of WSL2
I'm pretty sure the error is trivial tho, it's trying to remove folder like a file, it needs to use different method for deleting folders. It just seems like lost-pixel doesn't handle folders too well, as mentioned in #345 (comment)