Class: ActiveStorageFtp::EnhanceFtp
- Inherits:
-
Net::Ftp
- Object
- Net::Ftp
- ActiveStorageFtp::EnhanceFtp
- Defined in:
- lib/active_storage_ftp/enhance_ftp.rb
Instance Method Summary collapse
Instance Method Details
#mkdir_p(remove_path) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/active_storage_ftp/enhance_ftp.rb', line 3 def mkdir_p(remove_path) paths = remove_path.split('/') full_path = paths.first == '~' ? '' : '/' paths.each do |path| full_path = File.join(full_path, path) mkdir(full_path) end end |