Methods

Class/Module Index [+]

Quicksearch

Fluent::FileUtil

Public Class Methods

writable?(path) click to toggle source

Check file is writable if file exists Check directory is writable if file does not exist

@param [String] path File path @return [Boolean] file is writable or not

# File lib/fluent/plugin/file_util.rb, line 24
def writable?(path)
  path = File.exist?(path) ? path : File.dirname(path)
  File.writable?(path)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.