changeset 63:dff964aa0dd5 draft

Uploaded
author greg
date Mon, 22 May 2017 11:57:35 -0400
parents 9eabe9e58fb5
children 45aa928ed5df
files utils.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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'