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
Generated with the Darkfish Rdoc Generator 2.