Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#creates dir
dirc = "C:\\bkp" + Time.now.strftime("%Y%B%d")
Dir.mkdir( dirc , 0700 )
#opens/creates files
source = File.open("C:/sourcedir/sourcefile")
target = File.open(dirc + "targetfile" , "w")
#copies the source to target, 64 bytes at a time
target.write( source.read(64) ) while not source.eof?
#closes files
source.close
target.close
require 'fileutils'
include FileUtils
# Recursively copy the first directory into the second
cp_r "/path/to/source", "/path/to/dest"