You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Activity
skx commentedon Feb 11, 2022
That should work, and does in my tests. Here's an example input that demonstrates three ways of using the file module:
Before running I have no text-files, after I do:
Which type of
fileoperation are you using? A copy? A template? A literalcontentattempt, or a remote HTTP/HTTPS fetch?Does running with
-debugshow any obvious error(s) ?httpete commentedon Feb 15, 2022
What I see is that if target is /down/a/subdir it won't mkdir -p the trail.
skx commentedon Feb 15, 2022
Ahah, that was the missing detail!
If you try to create a file in a directory that does not exist then I would expect that to fail and would not regard that as a bug.
Maybe there should be better error-handling to report upon it though.
Something like this is what you want:
Report when a parent-directory doesn't exist