question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ensure parent directory when saving a resource file

See original GitHub issue

When creating a new resource file with pyxel edit D:/dir/test.pyxres, if the parent directory (dir in this case) doesn’t exist, the resource editor will crash if you try to save:

thread '<unnamed>' panicked at 'Unable to open file 'D:\dir\test.pyxres'', D:\a\pyxel\pyxel\crates\pyxel-engine\src\resource.rs:117:29
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This can potentially make a user lose all their progress so far (like I just did 😞).

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kitaocommented, Sep 23, 2022

In Pyxel 1.8.6. The directory of the specified file is checked when the file is opened.

1reaction
Morgandri1commented, Sep 18, 2022

ah, yes that did it. thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

The puppet equivalent of mkdir -p - Google Groups
Hi all, I'd like to add a several directories and I can't seem to do it with a single "file" directive. Say /home/jeff...
Read more >
Ensure directory tree exists from variable - Stack Overflow
You are on the right path. I think that this should work. # Create install directory file{ ["C:\folder1\", "C:\folder1\folder2", ...
Read more >
Puppet File resource :"Parent Directory does not exist" error
I am getting the following error during directory creation ...
Read more >
How do I move files and directories to the parent folder in Linux?
You must have a directory called scripts in your parent directory AND in your current directory. You will have to rename this one...
Read more >
Permissions when you copy and move files - Windows Client
To preserve existing permissions without adding inheritable permissions from the parent folder, use the Robocopy.exe utility, which is available ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found