From 32689a34cb7ff1f50857a21ef9c99e45e9e5e4f0 Mon Sep 17 00:00:00 2001 From: Henri Wahl Date: Thu, 12 Jul 2018 13:19:53 +0200 Subject: [PATCH] experimenting with parallel garbage collection part III --- seafadm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/seafadm b/seafadm index 55d41bb..7af3abb 100755 --- a/seafadm +++ b/seafadm @@ -1021,7 +1021,9 @@ if len(args) > 0: if len(args) >= 4: try: - seafile_dir = sys.argv[3] + seafile_dir = args[3] + if not os.path.exists(seafile_dir): + ErrorExit('{0} does not exist.'.format(seafile_dir)) except: ErrorExit(USAGE)