Land #7966, Fix 'rm' to handle multiple files
commit
2a20d24c29
|
@ -309,15 +309,15 @@ class Console::CommandDispatcher::Stdapi::Fs
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
# Delete the specified file.
|
# Delete the specified file(s).
|
||||||
#
|
#
|
||||||
def cmd_rm(*args)
|
def cmd_rm(*args)
|
||||||
if (args.length == 0)
|
if (args.length == 0)
|
||||||
print_line("Usage: rm file")
|
print_line("Usage: rm file1 [file2...]")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
client.fs.file.rm(args[0])
|
args.each { |f| client.fs.file.rm(f) }
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue