-
Notifications
You must be signed in to change notification settings - Fork 44
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
Option to create output directory when it doesn't exist? #1542
Comments
What is the use case? |
One use case is in my PR (which uses Lua to create the directory, rather than the executable).
Another would presumably be whenever the uses wants to specify the full path to the output file (say in a script that works on multiple files). The option would save the step of making sure the output directory exists.
✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️✝️
Fr. Samuel, OSB
(R. Padraic Springuel)
St. Anselm’s Abbey
4501 South Dakota Ave, NE
Washington, DC, 20017
202-269-2300
(c) 202-853-7036
PAX ☧ ΧΡΙΣΤΟΣ
… On May 23, 2021, at 10:16 PM, Henry So ***@***.***> wrote:
What is the use case?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I'm resistant to this idea. Are there any other cases of TeX components creating directories and stuff outside their purview? It kind of feels like a protection violation to allow the user to use a write18-exempted program to create random directories. |
Not so much random as asked for both by specifying the output path and invoking the option that says it’s okay to create directories. However, I can see the point about it potentially being a security issue. Sent with GitHawk |
Does it make sense to add an option to the executable that would allow it to create the directory associated with the
-o
option when it is given? The other option would be for the Lua code to check for the directory's existence and create it if it doesn't find it.The text was updated successfully, but these errors were encountered: