add new migrate_data step to move old folder

This commit is contained in:
Nick Sweeting 2018-06-10 23:01:56 -04:00
parent 9c56848645
commit aa5a674a17
2 changed files with 12 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import os
import sys
from datetime import datetime
from subprocess import run
from parse import parse_links
from links import validate_links
@ -29,6 +30,7 @@ from util import (
progress,
cleanup_archive,
pretty_path,
migrate_data,
)
__AUTHOR__ = 'Nick Sweeting <git@nicksweeting.com>'
@ -124,6 +126,8 @@ if __name__ == '__main__':
print_help()
raise SystemExit(0)
migrate_data()
source = sys.argv[1] if argc > 1 else None # path of links file to import
resume = sys.argv[2] if argc > 2 else None # timestamp to resume dowloading from