Class: RIO::FTP::RL

Inherits:
RL::URIBase show all
Defined in:
lib/rio/scheme/ftp.rb

Constant Summary

Constants inherited from RL::URIBase

RL::URIBase::HOST, RL::URIBase::SCHEME

Constants inherited from RL::WithPath

RL::WithPath::HOST, RL::WithPath::SCHEME

Instance Attribute Summary

Attributes inherited from RL::URIBase

#uri

Attributes inherited from RL::Base

#fs

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from RL::URIBase

#_get_base_from_arg, #_get_opts_from_args, #absolute?, #arg0_info_, #base, #base=, #host, #host=, #init_from_args_, #initialize_copy, #join, #opaque, #path, #path=, #pathroot, #scheme, #to_s, #url, #urlpath, #urlpath=, #urlroot

Methods inherited from RL::WithPath

#_build, #_parts, #_uri, #abs, #base, #basename, #build_arg0_, #dirname, #filename, #fspath, #fspath=, #fspath_no_slash, #host, #host=, #is_root?, #join, #merge, #opaque, #path, #path=, #path_no_slash, #pathdepth, #pathroot, #route_from, #route_to, #scheme, #split, #uri, #uri_from_string_, #urlpath, #urlpath=

Methods included from Error::NotImplemented

#nodef

Methods inherited from RL::Base

#==, #===, #=~, #callstr, #close, #escape, #fs2url, #fspath, #initialize_copy, is_riorl?, #length, parse, #path, #rl, split_riorl, subscheme, #to_rl, #to_s, #unescape, #url, #url2fs

Constructor Details

#initialize(*args) ⇒ RL

Returns a new instance of RL.



52
53
54
55
56
# File 'lib/rio/scheme/ftp.rb', line 52

def initialize(*args)
  super
  @ftype = nil
  @names = nil
end

Class Method Details

.splitrl(s) ⇒ Object



57
58
59
60
# File 'lib/rio/scheme/ftp.rb', line 57

def self.splitrl(s) 
  sub,opq,whole = split_riorl(s)
  [whole] 
end

Instance Method Details

#dir_rlObject



71
72
73
# File 'lib/rio/scheme/ftp.rb', line 71

def dir_rl() 
  self 
end

#file_rlObject



68
69
70
# File 'lib/rio/scheme/ftp.rb', line 68

def file_rl() 
  RIO::FTP::Stream::RL.new(self.uri) 
end

#open(*args) ⇒ Object



65
66
67
# File 'lib/rio/scheme/ftp.rb', line 65

def open(*args)
  IOH::Dir.new(RIO::FTP::Dir::Stream.new(self.uri))
end

#openfs_Object



61
62
63
64
# File 'lib/rio/scheme/ftp.rb', line 61

def openfs_
  #p callstr('openfs_')
  RIO::FTP::FS.create(self.uri)
end