# File lib/chef_zero/data_store/raw_file_store.rb, line 115 def delete_dir(path, *options) if options.include?(:recursive) if !File.exist?(path_to(path)) raise DataNotFoundError.new(path) end FileUtils.rm_rf(path_to(path)) else begin Dir.rmdir(path_to(path)) rescue Errno::ENOENT raise DataNotFoundError.new(path) end end end