Skip to content

Commit

Permalink
Update logging in listing regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
ggatward committed Jul 31, 2016
1 parent 184ae3a commit 8ef60cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sat_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,11 @@ def create_listing_file(directory):
"""
Function to create the listing file containing the subdirectories
"""
msg = "Rebuilding listing files..."
helpers.log_msg(msg, 'INFO')
print msg
listing_file = open(directory + "/listing", "w")
sorted_subdirs = sorted(get_immediate_subdirectories(directory))
print "CURRENTDIR - %s " % directory
print "\t SUBDIRS - %s " % sorted_subdirs
for directory in sorted_subdirs:
listing_file.write(directory + "\n")
listing_file.close()
Expand Down

0 comments on commit 8ef60cb

Please sign in to comment.