Method: Net::SFTP::Session#mkdir_p!

Defined in:
lib/fife/storage/sftp.rb

#mkdir_p!(pathname) ⇒ Object



6
7
8
9
10
11
# File 'lib/fife/storage/sftp.rb', line 6

def mkdir_p!(pathname)
  pathname = Pathname(pathname) unless pathname.is_a? Pathname
  pathname.descend do |path|
    mkdir!(path) rescue nil
  end
end