Module: DownloadHelper
- Included in:
- TerrImporter::Application::Downloader
- Defined in:
- lib/terrimporter/download_helper.rb
Instance Method Summary collapse
Instance Method Details
#create_directory(dir) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/terrimporter/download_helper.rb', line 2 def create_directory(dir) unless File.directory?(dir) and File.file?(dir) LOG.debug "Creating directory: #{dir}" FileUtils.mkpath(dir) end end |