模組 FileUtils::StreamUtils_

私有實例方法

fu_blksize(st) 按一下以切換來源
# File lib/fileutils.rb, line 2054
def fu_blksize(st)
  s = st.blksize
  return nil unless s
  return nil if s == 0
  s
end
fu_default_blksize() 按一下以切換來源
# File lib/fileutils.rb, line 2061
def fu_default_blksize
  1024
end
fu_stream_blksize(*streams) 按一下以切換來源
# File lib/fileutils.rb, line 2045
def fu_stream_blksize(*streams)
  streams.each do |s|
    next unless s.respond_to?(:stat)
    size = fu_blksize(s.stat)
    return size if size
  end
  fu_default_blksize()
end
fu_windows?() 按一下以切換來源
# File lib/fileutils.rb, line 2036
def fu_windows?; true end