Commit 4f30db8c by James Cammarata

Check if path is /dev/null when checking if a file is in fact a file

parent 36b5858f
......@@ -125,7 +125,7 @@ class DataLoader():
def is_file(self, path):
path = self.path_dwim(path)
return os.path.isfile(path)
return os.path.isfile(path) or path == os.devnull
def is_directory(self, path):
path = self.path_dwim(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment