Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 445 Bytes
" Check for changed timestamp (unless it was never set, or forced write)
if security != "restricted"
then {
if !bang && edited && timestamp != "" && time(filename) != timestamp
then error file's timestamp has changed
}
" Maybe make a backup
if backup && !newfile && security == "normal"
then {
switch os
case unix eval ! cp (filename) (filename).bak
default eval ! copy (filename) (dirname(filename) / basename(filename)).bak >NUL
}