Ruby 2.4参考手册
文件实用程序 | FileUtils
FileUtils::StreamUtils_
Private Instance Methods
fu_blksize(st) Show source
# File lib/fileutils.rb, line 1085
def fu_blksize(st)
s = st.blksize
return nil unless s
return nil if s == 0
s
end
fu_default_blksize() Show source
# File lib/fileutils.rb, line 1092
def fu_default_blksize
1024
end
fu_stream_blksize(*streams) Show source
# File lib/fileutils.rb, line 1076
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?() Show source
# File lib/fileutils.rb, line 1068
def fu_windows?
/mswin|mingw|bccwin|emx/ =~ RUBY_PLATFORM
end
文件实用程序 | FileUtils相关
Ruby 是一种面向对象、命令式、函数式、动态的通用编程语言,是世界上最优美而巧妙的语言。
主页 | https://www.ruby-lang.org/ |
源码 | https://github.com/ruby/ruby |
版本 | 2.4 |
发布版本 | 2.4.1 |