Ensure parent directory when saving a resource file
See original GitHub issueWhen 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:
- Created a year ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In Pyxel 1.8.6. The directory of the specified file is checked when the file is opened.
ah, yes that did it. thanks