Sha256: 20233c8d2f8a76dc742047369c54720f91ad439250599ba0a7c34462f6f80597

Contents?: true

Size: 274 Bytes

Versions: 7

Compression:

Stored size: 274 Bytes

Contents

require 'net/sftp'

class Net::SFTP::Session
  def mkdir_p!(dir)
    parts = dir.split(File::SEPARATOR)
    growing_parts = []
    for part in parts
      growing_parts.push(part)
      begin
        mkdir!(File.join(growing_parts))
      rescue
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
carrierwave-ftp-0.4.1 lib/carrierwave/storage/ftp/ex_sftp.rb
carrierwave-ftp-0.4.0 lib/carrierwave/storage/ftp/ex_sftp.rb
carrierwave-ftp-0.3.1 lib/carrierwave/storage/ftp/ex_sftp.rb
carrierwave-ftp-0.3.0 lib/carrierwave/storage/ftp/ex_sftp.rb
carrierwave-ftp-0.2.8 lib/carrierwave/storage/ftp/ex_sftp.rb
carrierwave-ftp-0.2.7 lib/carrierwave/storage/ftp/ex_sftp.rb
carrierwave-ftp-0.2.6 lib/carrierwave/storage/ftp/ex_sftp.rb