Sha256: bf1fdd9b32b49a916e175a39abc1ff0257597636ba37d25ff9e0c9037aab69ba
Contents?: true
Size: 245 Bytes
Versions: 100
Compression:
Stored size: 245 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
100 entries across 100 versions & 1 rubygems