module Sprockets::PathUtils

def directory?(path)

Returns true path exists and is a directory.

path - String file path.

Public: Like `File.directory?`.
def directory?(path)
  if stat = self.stat(path)
    stat.directory?
  else
    false
  end
end