esturdivant-usgs / science-base-automation

Automating large USGS ScienceBase data releases
4 stars 2 forks source link

Problems when the parent folder does not contain directories. #27

Closed esturdivant-usgs closed 6 years ago

esturdivant-usgs commented 6 years ago

in sb_automation.py

for root, dirs, files in os.walk(parentdir):
  for d in dirs:
    # doesn't get here if there are no dirs, which means it doesn't execute all the important functions