Support for hdfs dfs -rm /directory
This commit is contained in:
@@ -10,4 +10,7 @@ def match(command, settings):
|
||||
|
||||
@sudo_support
|
||||
def get_new_command(command, settings):
|
||||
return re.sub('^rm (.*)', 'rm -rf \\1', command.script)
|
||||
arguments = '-rf'
|
||||
if 'hdfs' in command.script:
|
||||
arguments = '-r'
|
||||
return re.sub('\\brm (.*)', 'rm ' + arguments + ' \\1', command.script)
|
||||
|
||||
Reference in New Issue
Block a user