summaryrefslogtreecommitdiff
path: root/lib/ftplib.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftplib.rb')
-rw-r--r--lib/ftplib.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ftplib.rb b/lib/ftplib.rb
index a8edac8..ab93f64 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