You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parsereq.add_argument('--drive-id','-d',help='The ID of the Shared Drive.',required=True)
18
+
parsereq.add_argument('--drive-id','-d',help='The ID of the Shared Drive.',required=True)
16
19
17
20
args=parse.parse_args()
18
21
acc_dir=args.path
19
22
did=args.drive_id
20
23
credentials=glob.glob(args.credentials)
21
24
22
25
try:
23
-
open(credentials[0],'r')
24
-
print('>> Found credentials.')
26
+
open(credentials[0],'r')
27
+
print('>> Found credentials.')
25
28
exceptIndexError:
26
-
print('>> No credentials found.')
27
-
sys.exit(0)
28
-
29
+
print('>> No credentials found.')
30
+
sys.exit(0)
31
+
29
32
ifnotargs.yes:
30
-
# input('Make sure the following client id is added to the shared drive as Manager:\n' + json.loads((open(credentials[0],'r').read()))['installed']['client_id'])
31
-
input('>> Make sure the **Google account** that has generated credentials.json\n is added into your Team Drive (shared drive) as Manager\n>> (Press any key to continue)')
33
+
# input('Make sure the following client id is added to the shared drive as Manager:\n' + json.loads((open(
0 commit comments