module Fluent::FileWrapper
Public Class Methods
open(*args) { |io| ... }
click to toggle source
# File lib/fluent/plugin/file_wrapper.rb, line 19 def self.open(*args) io = WindowsFile.new(*args).io if block_given? v = yield io io.close v else io end end
stat(path)
click to toggle source
# File lib/fluent/plugin/file_wrapper.rb, line 30 def self.stat(path) f = WindowsFile.new(path) s = f.stat f.close s end