X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Fmailshears%2Ffilesystem.rb;fp=lib%2Fmailshears%2Ffilesystem.rb;h=0000000000000000000000000000000000000000;hp=72ff901dd1e0dc602369c6a795a13d0164ab30d5;hb=c6cab6b71770d14dad1115db90a00b990c44a58d;hpb=150ee5398c17acca8ef03b3cc48b3aa7bc1b0035 diff --git a/lib/mailshears/filesystem.rb b/lib/mailshears/filesystem.rb deleted file mode 100644 index 72ff901..0000000 --- a/lib/mailshears/filesystem.rb +++ /dev/null @@ -1,22 +0,0 @@ -class Filesystem - - def self.begins_with_dot(path) - return (path[0..0] == '.') - end - - def self.get_subdirs(dir) - subdirs = [] - - Dir.open(dir) do |d| - d.each do |entry| - relative_path = File.join(dir, entry) - if (File.directory?(relative_path) and not begins_with_dot(entry)) - subdirs << entry - end - end - end - - return subdirs - end - -end