Sha256: 1b9bc03cd18f40d9ce5ef5f267d52ad2f29696d0f69416e8da8574264485634f
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
require 'double_bag_ftps' class ExFTPTLS < DoubleBagFTPS def mkdir_p(dir) parts = dir.split("/") if parts.first == "~" growing_path = "" else growing_path = "/" end for part in parts next if part == "" if growing_path == "" growing_path = part else growing_path = File.join(growing_path, part) end begin mkdir(growing_path) chdir(growing_path) rescue Net::FTPPermError, Net::FTPTempError => e end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
activestorage-ftp-0.1.0 | lib/active_storage_ftp/ex_ftptls.rb |
carrierwave-ftp-0.4.1 | lib/carrierwave/storage/ftp/ex_ftptls.rb |
carrierwave-ftp-0.4.0 | lib/carrierwave/storage/ftp/ex_ftptls.rb |