Sha256: f00bc1c9b2a79bcd832e19efe2f91250aeaefbfe352441cf51f90b753f39b86a
Contents?: true
Size: 272 Bytes
Versions: 2
Compression:
Stored size: 272 Bytes
Contents
module AmicoDb module DownloadTools class CreateDirIfNotExist attr_accessor :path def initialize(path) self.path = path end def call dirname = File.dirname(path) FileUtils.mkdir_p(dirname) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amico-db-0.1.8 | lib/amico-db/download_tools/create_dir_if_not_exist.rb |
amico-db-0.1.7 | lib/amico-db/download_tools/create_dir_if_not_exist.rb |