Mercurial > repos > greg > assembly_post_processor
diff utils.py @ 63:dff964aa0dd5 draft
Uploaded
author | greg |
---|---|
date | Mon, 22 May 2017 11:57:35 -0400 |
parents | f7a999b3b19c |
children | 45aa928ed5df |
line wrap: on
line diff
--- a/utils.py Mon May 22 11:57:28 2017 -0400 +++ b/utils.py Mon May 22 11:57:35 2017 -0400 @@ -58,7 +58,8 @@ with open(output, 'w') as fh: dir_items = sorted(os.listdir(dir)) # Directories can only contain either files or directories, but not both. - if os.path.isdir(dir_items[0]): + item_path = os.path.join(dir, dir_items[0]) + if os.path.isdir(item_path): header = 'Directories' else: header = 'Datasets'