Skip to content

to-directory-tree: Create parents of files when using fixpoint directory tree representation #2653

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

Merged
merged 4 commits into from
Apr 28, 2025

Conversation

mmhat
Copy link
Collaborator

@mmhat mmhat commented Apr 27, 2025

When one uses dhall to-directory-tree --allow-path-separators to create a file using the fixpoint representation of a filesystem tree, then that failed if a path with path separators was passed to the file or binary-file constructors and the parent directory of the file in question did not exist.

This PR fixes that by ensuring that the parent directory does exist.

mmhat added 3 commits April 26, 2025 14:06
Before, when one uses `to-directory-tree --allow-path-separators` to
create a file using the fixpoint representation of a filesystem tree,
then that failed if a path with path separators was passed to the `file`
or `binary-file` constructors. The reason was that we did not create the
parent directories, which is intended by the use of
--allow-path-separators.

This commit fixes that.
@mmhat mmhat enabled auto-merge (squash) April 28, 2025 00:00
@mmhat mmhat merged commit 9e0e11f into dhall-lang:main Apr 28, 2025
9 checks passed
@mmhat mmhat deleted the to-directory-tree-create-parent branch April 28, 2025 02:11
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

Successfully merging this pull request may close these issues.

1 participant