compass/src/test/testData/gems/compass-0.13.alpha.2/lib/compass/actions.rb
def directory(dir, options = nil)
      options ||= self.options if self.respond_to?(:options)
      options ||= {}
      if File.exists?(dir) && File.directory?(dir)
          # do nothing
      elsif File.exists?(dir)
        msg = "#{basename(dir)} already exists and is not a directory."
        raise Compass::FilesystemConflict.new(msg)
      else
        log_action :directory, separate("#{basename(dir)}/"), options
        FileUtils.mkdir_p(dir) unless options[:dry_run]
      end
    end
# create a directory and all the directories necessary to reach it.
create a directory and all the directories necessary to reach it.
create a directory and all the directories necessary to reach it .
def directory(dir, options = nil)
      options ||= self.options if self.respond_to?(:options)
      options ||= {}
      if File.exists?(dir) && File.directory?(dir)
      elsif File.exists?(dir)
        msg = "#{basename(dir)} already exists and is not a directory."
        raise Compass::FilesystemConflict.new(msg)
      else
        log_action :directory, separate("#{basename(dir)}/"), options
        FileUtils.mkdir_p(dir) unless options[:dry_run]
      end
    end
def directory ( dir , options = nil ) options ||= self . options if self . respond_to? ( :options ) options ||= { } if File . exists? ( dir ) && File . directory? ( dir ) elsif File . exists? ( dir ) msg = "#{basename(dir)} already exists and is not a directory." raise Compass :: FilesystemConflict . new ( msg ) else log_action :directory , separate ( "#{basename(dir)}/" ) , options FileUtils . mkdir_p ( dir ) unless options [ :dry_run ] end end
create a directory and all the directories necessary to reach it.
create a directory and all the directories necessary to reach it .
# do nothing
dir
options