Proposal: Add the options "Automatic Directory Creation with Slash"
Currently, the Fresh Editor throws an error when a forward slash is included in the filename during file creation, which causes the operation to fail.
However, VSCode provides a feature that automatically creates and places directories when slashes are included in the filename.
This is an extremely useful feature that significantly enhances user experience.
I believe this would be beneficial to implement, and I consider the implementation to be relatively straightforward.
To be more precise, rather than simply creating directories,
the feature interprets a relative path specification and automatically creates any missing directories along the path as needed.
Considerations
- Permissions
- An important aspect to consider in this implementation is permission handling.
- Under no circumstances should unwrap or similar error-handling methods be used
in case of failure.
- Directory Traversal
- Access attempts using "~", "$HOME", or "/" should be prevented.
- These should be interpreted as literal strings and should not be expanded.
- Relative Path Access
- Paths containing "." and ".." should be handled as-is.
- These are extremely useful to users when creating files and directories.
Note
- I used Claude Haiku 4.5 to translate this issue
- If this sentence including rude sentences, I really apologize to you
Proposal: Add the options "Automatic Directory Creation with Slash"
Currently, the Fresh Editor throws an error when a forward slash is included in the filename during file creation, which causes the operation to fail.
However, VSCode provides a feature that automatically creates and places directories when slashes are included in the filename.
This is an extremely useful feature that significantly enhances user experience.
I believe this would be beneficial to implement, and I consider the implementation to be relatively straightforward.
To be more precise, rather than simply creating directories,
the feature interprets a relative path specification and automatically creates any missing directories along the path as needed.
Considerations
in case of failure.
Note