Class: RIO::FTP::RRL
Instance Attribute Summary
Attributes inherited from RRL::Base
#fs, #uri
Instance Method Summary
collapse
#initialize, #initialize_copy, parse
#absolute?, #base, #base=, #fspath_no_slash, #host, #host=, #opaque, #path, #path=, #path_no_slash, #pathdepth, #pathroot, #scheme, #split
Methods included from RIO::Fwd
#fwd, #fwd_reader, #fwd_readers, #fwd_writer, #fwd_writers
#nodef
Methods inherited from RRL::Base
#==, #===, #=~, #callstr, #close, #initialize, #initialize_copy, #length, parse, #to_s, #url
Instance Method Details
#_sup_args(arg0, *args) ⇒ Object
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# File 'lib/rio/scheme/ftp.rb', line 40
def _sup_args(arg0,*args)
if arg0 == 'ftp:'
hn = args.shift || 'localhost'
us = args.shift
pw = args.shift
pt = args.shift || ''
ph = args.shift || '/'
tc = args.shift || ''
u = URI::FTP.new2(us,pw,hn,pt,ph,tc)
return [u]
else
return [arg0] + args
end
end
|
67
68
69
|
# File 'lib/rio/scheme/ftp.rb', line 67
def dir_rl()
self
end
|
64
65
66
|
# File 'lib/rio/scheme/ftp.rb', line 64
def file_rl()
RIO::FTP::Stream::RRL.new(self.uri)
end
|
57
58
59
60
|
# File 'lib/rio/scheme/ftp.rb', line 57
def openfs_
RIO::FTP::FS.create(self.uri)
end
|
54
|
# File 'lib/rio/scheme/ftp.rb', line 54
def typecode() uri.typecode end
|
#typecode=(val) ⇒ Object
55
|
# File 'lib/rio/scheme/ftp.rb', line 55
def typecode=(val) uri.typecode = val end
|