module Fec::FileHelper
Public Instance Methods
directory?(path)
click to toggle source
# File lib/fec/file_helper.rb, line 4 def directory?(path) parrent = File.expand_path('..', path) path = File.basename(path) File.directory?(File.join(parrent, path)) && !(path == '.' || path == '..') end