Sha256: 0436ea8ee21205b2c3b32797108a0da4c83ee6910ad41e0379870e0f2775b0b7
Contents?: true
Size: 235 Bytes
Versions: 4
Compression:
Stored size: 235 Bytes
Contents
class Knj::Filesystem def self.copy(args) FileUtils.rm(args[:to]) if args[:replace] and File.exists?(args[:to]) FileUtils.cp(args[:from], args[:to]) mod = File.lstat(args[:from]).mode & 0777 File.chmod(mod, args[:to]) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
knjrbfw-0.0.8 | lib/knj/filesystem.rb |
knjrbfw-0.0.7 | lib/knj/filesystem.rb |
knjrbfw-0.0.4 | lib/knj/filesystem.rb |
knjrbfw-0.0.3 | lib/knj/filesystem.rb |