module FileSystem
File: fs.rb Project: dotfiles-cli Author: exstnce (exstnce@protonmail.ch) Created on Monday, 9th July 2018 9:47:06 pm
Public Class Methods
contents(path)
click to toggle source
# File lib/dotfiles/utils/fs.rb, line 21 def self.contents(path) path+'*' end
mkdir(path)
click to toggle source
# File lib/dotfiles/utils/fs.rb, line 25 def self.mkdir(path) Dir.mkdir(path) unless File.exists?(path) path end
rglob(root)
click to toggle source
# File lib/dotfiles/utils/fs.rb, line 30 def self.rglob(root) files = Dir.glob(root+'.*') files.delete(root+'.dotfiles/') files.delete(root+'.') files.delete(root+'..') files end