apm_backup_file_p (private)
apm_backup_file_p path
Defined in packages/acs-bootstrap-installer/tcl/30-apm-load-procs.tcl
Returns 1 if $path is a backup file, or 0 if not. We consider it a backup file if any of the following apply:
- its name begins with
#- its name is
bak- its name begins with
bakand one or more non-alphanumeric characters- its name ends with
.old,.bak, or~
- Parameters:
- path (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: return [regexp {(\.old|\.bak|~)$|^#|^bak$|^bak([^a-zA-Z]+)} $path]XQL Not present: Generic, PostgreSQL, Oracle