Justintime50 / github-archive

A powerful tool to concurrently clone, pull, or fork user and org repos and gists to create a GitHub archive.
MIT License
186 stars 48 forks source link

Deleting Log Files is Broken #11

Closed Justintime50 closed 4 years ago

Justintime50 commented 4 years ago

Log files aren't being deleted after 30 days and is throwing an error at the end of the script:

Traceback (most recent call last):
  File "github_archive.py", line 272, in <module>
    Archive.run()
  File "github_archive.py", line 252, in run
    if file.mtime < Archive.LOG_LIFE:
AttributeError: 'str' object has no attribute 'mtime'