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