summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ftplib.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ftplib.rb b/lib/ftplib.rb
index a8edac8123..ab93f64545 100644
--- a/lib/ftplib.rb
+++ b/lib/ftplib.rb
@@ -551,6 +551,13 @@ class FTP
resp
end
+ def mdtm(filename)
+ resp = sendcmd("MDTM " + filename)
+ if resp[0, 3] == "213"
+ return resp[3 .. -1].strip
+ end
+ end
+
def help(arg = nil)
cmd = "HELP"
if arg