Skip to content

Commit

Permalink
Merge pull request #95 from /issues/93
Browse files Browse the repository at this point in the history
Use directory path to form subdirectory paths.
  • Loading branch information
mcquin authored Jan 24, 2018
2 parents 1a98b4d + d469a03 commit 9e84210
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cytominer_database/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@ def find_directories(directory):
:return: list of subdirectories of ``directory``
"""
directories = set()

filenames = glob.glob(os.path.join(directory, '*/'))

for filename in filenames:
pathname = os.path.relpath(filename)

directories.add(pathname)

return directories
return glob.glob(os.path.join(directory, '*/'))


def validate_csv(csvfile):
Expand Down

0 comments on commit 9e84210

Please sign in to comment.