]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/mailshears/filesystem.rb
Factor out common code that can be used to mv (rename) accounts.
[mailshears.git] / lib / mailshears / filesystem.rb
diff --git a/lib/mailshears/filesystem.rb b/lib/mailshears/filesystem.rb
deleted file mode 100644 (file)
index 72ff901..0000000
+++ /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