status(pathname = nil)
public
Returns the status (STAT command).
pathname - when stat is invoked with pathname as a parameter it acts like
list but alot faster and over the same tcp session.
Show source
def status(pathname = nil)
line = pathname ? "STAT #{pathname}" : "STAT"
if /[\r\n]/ =~ line
raise ArgumentError, "A line must not contain CR or LF"
end
print "put: #{line}\n" if @debug_mode
@sock.send(line + CRLF, Socket::MSG_OOB)
return getresp
end