Ruby常用文件操作方法

2019-09-25 09:42:13王旭

4、文件比较 复制等

    require 'ftools'
    File.copy 'testfile', 'testfile1'  » true
    File.compare 'testfile', 'testfile1'  » true