removed pics.json
This commit is contained in:
parent
c8d1d274cd
commit
af350028fd
6
sync.py
6
sync.py
|
@ -14,8 +14,6 @@ parser.add_argument('--ignore', help='Files to ignore', default=defaults['ignore
|
|||
parser.add_argument('--overwrite', help='Overwrite existing images', action='store_true')
|
||||
args=parser.parse_args()
|
||||
|
||||
pics=[]
|
||||
|
||||
if args.remote!='' and args.remote[-1] != '/':
|
||||
args.remote += '/'
|
||||
|
||||
|
@ -28,7 +26,6 @@ try:
|
|||
|
||||
for root,fir,files in os.walk(args.local):
|
||||
for file in files:
|
||||
pics.append(file)
|
||||
if file in args.ignore:
|
||||
print("ignored: " + file)
|
||||
continue
|
||||
|
@ -54,6 +51,3 @@ try:
|
|||
except Exception as ex:
|
||||
print('Exception:')
|
||||
print(ex)
|
||||
|
||||
finally:
|
||||
json.dump(pics, open('pics.json', 'w'))
|
Loading…
Reference in New Issue