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

It would be nice if permissions were checked eariler when creating parchive. #186

Open
Error1000 opened this issue Aug 29, 2023 · 0 comments

Comments

@Error1000
Copy link

Currently when creating a parchive it first per-processes the entire input (par2creator.cpp#L159) then it tries to create the vol files (which happens at this call site par2creator.cpp#L175, or more specifically at this line in the function that is called par2creator.cpp#L692), but if the user doesn't have enough permissions to create the vol file, it crashes, after spending several minutes processing the data.
It would be nice if it checked if it can create the files before attempting to process data to minimize the amount of wasted time.

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

No branches or pull requests

1 participant