class LogStash::Outputs::Swift::WritableDirectoryValidator
Public Class Methods
valid?(path)
click to toggle source
# File lib/logstash/outputs/swift/writable_directory_validator.rb, line 6 def self.valid?(path) begin FileUtils.mkdir_p(path) unless Dir.exist?(path) ::File.writable?(path) rescue false end end