Method: RIO::FTP::FS#mkpath

Defined in:
lib/rio/ftp/fs.rb

#mkpath(url) ⇒ Object



152
153
154
155
156
157
158
159
160
# File 'lib/rio/ftp/fs.rb', line 152

def mkpath(url)
  tpath = rio(url)
  tmprio = tpath.root
  pathparts = tpath.path.split('/')[1..-1]
  pathparts.each do |part|
    tmprio.join!(part)
    tmprio.mkdir
  end
end