Skip to content

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

@SmithSamuelM

Description

@SmithSamuelM

new .exists method allows detecting if main path/file and alt path/file already exists. Would be cleaner if this was built into reopen directly instead of another method that has to reconstruct the paths.

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. This gives the option to remove the default fallback of alt path.

Second 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions