Closed CRiddler closed 6 years ago
os was imported for use of os.path.isfile(), however since we're using pathlib.Path objects, we can simply check with Path.is_file(), since this was the only reason os was imported, we can get rid of the import entirely
This is great, thanks. I'll test it in a bit.
os was imported for use of os.path.isfile(), however since we're using pathlib.Path objects, we can simply check with Path.is_file(), since this was the only reason os was imported, we can get rid of the import entirely