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

Modify reopen/remake logic so can detect if file or path already exists and so does not open #34

Open
SmithSamuelM opened this issue Apr 3, 2024 · 0 comments

Comments

@SmithSamuelM
Copy link
Contributor

new .exists method allows detecting if main path/file already exists. Does not check for alternate path.
So first add parameter altive=True/False to disable auto alternate path creation i.e force it to fail if main path fails due to permissions.

Now can check to see if main or alt path already exists by changing reopen/remake behavior.
Add a virgin=True/False parameter to reopen/remake and some logic changes that there would be a way to make it so existing reopen/remake methods could tell if file alread ready existed because it would force it to only be opened == True if it was a virgin open (i.e. did not exist before i.e never been opened). But is was going to take more time to figure out than I had so I will come back to it later. This way can also manage the alternate path as well. Created an issue for me to do this later.

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