Skip to content
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

Open
rpspringuel opened this issue May 20, 2021 · 4 comments · Fixed by #1543
Open

Option to create output directory when it doesn't exist? #1542

rpspringuel opened this issue May 20, 2021 · 4 comments · Fixed by #1543

Comments

@rpspringuel
Copy link
Contributor

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.

@rpspringuel rpspringuel mentioned this issue May 21, 2021
@henryso
Copy link
Contributor

henryso commented May 24, 2021

What is the use case?

@rpspringuel
Copy link
Contributor Author

rpspringuel commented May 24, 2021 via email

@henryso
Copy link
Contributor

henryso commented May 24, 2021

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.

@rpspringuel
Copy link
Contributor Author

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

@rpspringuel rpspringuel linked a pull request Oct 10, 2023 that will close this issue
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 a pull request may close this issue.

2 participants