Changes
This commit is contained in:
6
lib/ensure_dir_exists.rb
Normal file
6
lib/ensure_dir_exists.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
def ensure_dir_exists(directory_path)
|
||||
unless Dir.exist?(directory_path)
|
||||
FileUtils.mkdir_p(directory_path)
|
||||
spawn_toast 'Directory Created', %(Poaster created #{directory_path}.), 10
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user