@@ -3788,9 +3788,6 @@ def _slurm_cmd(self, folders, cmd_type, scheduled=None):
3788
3788
def index (self , folders ):
3789
3789
'''Index the given folders for archiving'''
3790
3790
try :
3791
- # Clean the provided paths
3792
- folders = clean_path_list (folders )
3793
-
3794
3791
if self ._is_recursive_collision (folders ):
3795
3792
log (
3796
3793
f'\n Error: You cannot index folders if there is a dependency between them. Specify only the parent folder.\n ' )
@@ -4090,9 +4087,6 @@ def _archive_locally(self, folder_to_archive, is_recursive, is_subfolder, is_tar
4090
4087
def archive (self , folders ):
4091
4088
'''Archive the given folders'''
4092
4089
try :
4093
- # Clean the provided paths
4094
- folders = clean_path_list (folders )
4095
-
4096
4090
# Set flags
4097
4091
is_recursive = self .args .recursive
4098
4092
@@ -4251,7 +4245,6 @@ def mount(self, folders, mountpoint):
4251
4245
'''Mount the given folder'''
4252
4246
4253
4247
# Clean the provided paths
4254
- folders = clean_path_list (folders )
4255
4248
mountpoint = clean_path (mountpoint )
4256
4249
4257
4250
self ._mount_locally (folders , mountpoint )
@@ -4278,9 +4271,6 @@ def _unmount_locally(self, folders):
4278
4271
def unmount (self , folders ):
4279
4272
4280
4273
try :
4281
- # Clean the provided paths
4282
- folders = clean_path_list (folders )
4283
-
4284
4274
self ._unmount_locally (folders )
4285
4275
4286
4276
return True
@@ -4833,9 +4823,6 @@ def delete(self, folders):
4833
4823
'''Delete the given folders'''
4834
4824
4835
4825
try :
4836
- # Clean the provided paths
4837
- folders = clean_path_list (folders )
4838
-
4839
4826
# Set flags
4840
4827
is_recursive = self .args .recursive
4841
4828
@@ -4953,9 +4940,6 @@ def restore(self, folders, aws: AWSBoto):
4953
4940
'''Restore the given folder'''
4954
4941
4955
4942
try :
4956
- # Clean the provided paths
4957
- folders = clean_path_list (folders )
4958
-
4959
4943
# Set flags
4960
4944
is_recursive = self .args .recursive
4961
4945
@@ -7637,6 +7621,10 @@ def main():
7637
7621
if cfg .is_shared and cfg .shared_dir :
7638
7622
cfg .assure_permissions_and_group (cfg .shared_dir )
7639
7623
7624
+ # Clean the provided paths (if any)
7625
+ if hasattr (cmd .args , "folders" ):
7626
+ cmd .args .folders = clean_path_list (cmd .args .folders )
7627
+
7640
7628
# CLI commands that do NOT need credentials or configuration
7641
7629
if args .subcmd in ['config' , 'cnf' ]:
7642
7630
res = cmd .subcmd_config (cfg , aws )
0 commit comments