From 3be2b27bccade3bab71cb3ccea47af9b5ac34ac1 Mon Sep 17 00:00:00 2001 From: neingeist Date: Wed, 11 Jul 2018 14:13:42 +0200 Subject: [PATCH] quote printed filename --- drive-download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive-download.py b/drive-download.py index 7e49c46..e1c2b8f 100644 --- a/drive-download.py +++ b/drive-download.py @@ -20,7 +20,7 @@ for file1 in file_list: if file1['mimeType'] == 'application/vnd.google-apps.folder': continue local_filename = file1['title'] - print(local_filename) + print(shlex.quote(local_filename)) if not os.path.exists(local_filename): file1.GetContentFile(local_filename) else: