Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EISDIR when running locally #346

Open
Maxim-Mazurok opened this issue Dec 26, 2023 · 2 comments
Open

EISDIR when running locally #346

Maxim-Mazurok opened this issue Dec 26, 2023 · 2 comments

Comments

@Maxim-Mazurok
Copy link

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.
@d-ivashchuk
Copy link
Collaborator

which OS are you on? sounds like a very os specific(permission) problem that I have not seen before 🤔

@Maxim-Mazurok
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants