Class: Dir
- Inherits:
-
Object
- Object
- Dir
- Defined in:
- lib/gonzui/util.rb
Class Method Summary collapse
Class Method Details
.all_files(directory) ⇒ Object
193 194 195 196 197 198 199 200 |
# File 'lib/gonzui/util.rb', line 193 def self.all_files(directory) file_names = [] Find.find(directory) {|file_name| next unless File.file?(file_name) file_names.push(file_name) } return file_names.sort! end |
.entries_without_dots(directory) ⇒ Object
189 190 191 |
# File 'lib/gonzui/util.rb', line 189 def self.entries_without_dots(directory) entries(directory).find_all {|e| e != "." and e != ".." } end |