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

pull/12360/head
James Cammarata 9 years ago
parent 36b5858f51
commit 4f30db8ca5

@ -125,7 +125,7 @@ class DataLoader():
def is_file(self, path): def is_file(self, path):
path = self.path_dwim(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): def is_directory(self, path):
path = self.path_dwim(path) path = self.path_dwim(path)

Loading…
Cancel
Save