lang::catalog::is_upgrade_backup_file (private)
lang::catalog::is_upgrade_backup_file file_path
Defined in packages/acs-lang/tcl/lang-catalog-procs.tcl
Given a file path return 1 if the path represents a file with messages backed up from message catalog upgrade.
- Parameters:
- file_path (required)
- Author:
- Peter Marklund
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: array set filename_info [apm_parse_catalog_path $file_path] if { [array size filename_info] == 0 } { # Parsing failed set return_value 0 } else { # Parsing succeeded set prefix $filename_info(prefix) if { [regexp "^[message_backup_file_prefix]" $prefix match] } { # The prefix looks right set return_value 1 } else { # Catalog file with unknown prefix ns_log Warning "The file $file_path has unknown prefix $prefix" set return_value 0 } } return $return_valueGeneric XQL file: packages/acs-lang/tcl/lang-catalog-procs.xql
PostgreSQL XQL file: packages/acs-lang/tcl/lang-catalog-procs-postgresql.xql
Oracle XQL file: packages/acs-lang/tcl/lang-catalog-procs-oracle.xql