Closed ldunham1 closed 4 years ago
https://github.com/mikemalinowski/qute/blob/3c5e1c34eba7153ba564910963f5c48c7abd1b4c/qute/constants.py#L24
os.path.isdir() will check if the path exists AND if its a directory. Depending on usage, it might be "safer" to use than os.path.exists().
Nice find - i had not even considered that. Switched to os.path.isdir as per your suggestion.
https://github.com/mikemalinowski/qute/blob/3c5e1c34eba7153ba564910963f5c48c7abd1b4c/qute/constants.py#L24
os.path.isdir() will check if the path exists AND if its a directory. Depending on usage, it might be "safer" to use than os.path.exists().