Sha256: 7c1503d6cf3ce4113d91099642b86ec3b1d8c7297186541d2de2e4cc001eb254

Contents?: true

Size: 333 Bytes

Versions: 49

Compression:

Stored size: 333 Bytes

Contents

# encoding: utf-8
module LogStash
  module Outputs
    class S3
      class WritableDirectoryValidator
        def self.valid?(path)
          begin
            FileUtils.mkdir_p(path) unless Dir.exist?(path)
            ::File.writable?(path)
          rescue
            false
          end
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
logstash-integration-aws-7.1.8-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.7-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-zst-1.1.0 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-zst-1.0.0 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.6-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.5-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.4-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.3-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.2-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.1-java lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.1.0 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.0.1 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-4.4.1 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-7.0.0 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-4.4.0 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-4.3.7 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-4.3.6 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-integration-aws-0.1.0.pre lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-4.3.5 lib/logstash/outputs/s3/writable_directory_validator.rb
logstash-output-s3-4.3.4 lib/logstash/outputs/s3/writable_directory_validator.rb