The source project of this merge request has been removed.
Create mkdir rule
I'm using xsim for many of my documents and depend on using files because of verbatim content. Therefore, I always have to create an xsim
folder next to my main source file. It would be great to have a mkdir
rule and let arara create the directory for me.
I have already tried this implementation myself, but it has some caveats:
- with my implementation, it is possible to create directories outside of the current directory (on Windows, I was able to create
C:\test
usingmkdir: { target: "\\test" }
- it is possible to create subdirectories when paying attention to the os's path separator (on Windows:
mkdir: { target: "test1\\test2" }
createstest2
intest1
in the working directory)
I think it would also be possible to use the mkdir
function from VfsFile
, but I'm not that familiar with arara to implement it myself.
Another improvement could be to accept a list of directory names instead of only one.
Additionally, it would be great if the clean-rule could also empty that folder, but that's a discussion for another time.