Sha256: 286e1bb9e83e1bb206203c0ccd95cbc81216e960fa2233cb51b6440e524a7b90
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
module Divvy module Plugins module FileUtilities # Makes a directory # path is the diretory to create. This will not create the directory if it already exists # mode is the file mode of the directory. If nil, no mode changes will be made def mkdir(path, mode = nil) run("[ -d #{path} ] || mkdir -p #{path}") run("chmod #{mode} #{dir}") unless mode.nil? end end end end register_plugin(Divvy::Plugins::FileUtilities)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mdwan-divvy-0.1.0 | lib/divvy/plugins/file_utilities.rb |
mdwan-divvy-0.1.1 | lib/divvy/plugins/file_utilities.rb |