Class: Utils::FileSystem
- Inherits:
-
Object
- Object
- Utils::FileSystem
- Extended by:
- T::Sig
- Defined in:
- lib/utils/file_system.rb
Class Method Summary collapse
Class Method Details
.create_directory_if_not_exist(name) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/utils/file_system.rb', line 9 def self.create_directory_if_not_exist(name) return true if File.directory?(name) begin Dir.mkdir(name) true rescue SystemCallError false end end |