Skip to content
Snippets Groups Projects
Commit 00d1e8b7 authored by John Chilton's avatar John Chilton
Browse files

Fixup that last commit.

parent 09f7ec3e
No related branches found
No related tags found
No related merge requests found
from os.path import abspath, basename, join, exists
from os.path import isdir
from os.path import isfile
from os.path import dirname
from os.path import relpath
from os import listdir, sep
......@@ -206,11 +206,11 @@ class FileStager(object):
return self.__list_files(self.metadata_directory)
def __list_files(self, directory):
if not directory or not exists(directory):
if directory and exists(directory):
return [f for f in listdir(directory) if isfile(join(directory, f))]
else:
return []
return [f for f in listdir(directory) if exists(f) and isdir(f)]
def __initialize_version_file_rename(self):
version_file = self.version_file
if version_file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment