From 1e31416ac8f13c1f271e5740f45c65d215c0c0ba Mon Sep 17 00:00:00 2001 From: neingeist Date: Wed, 11 Jul 2018 15:02:56 +0200 Subject: [PATCH] add XXXs/TODOs --- drive-download | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drive-download b/drive-download index 44dc8c0..203ac08 100755 --- a/drive-download +++ b/drive-download @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -FOLDER = '1J_Yw3ENBfDOEjiPV2LpYIa86aAPnaVx3' +FOLDER = '1J_Yw3ENBfDOEjiPV2LpYIa86aAPnaVx3' # XXX Should be 1. name 2. arg import sys if sys.version_info < (3, 3): @@ -25,6 +25,7 @@ gauth.CommandLineAuth() drive = GoogleDrive(gauth) file_list = drive.ListFile({'q': "'{}' in parents and trashed=false".format(FOLDER)}).GetList() +# XXX Check for filename dupes for file1 in file_list: if file1['mimeType'] == 'application/vnd.google-apps.folder': continue