apm_is_catalog_file (public)
apm_is_catalog_file file_path
Defined in packages/acs-bootstrap-installer/tcl/30-apm-load-procs.tcl
Given a file path return 1 if the path represents a message catalog file and 0 otherwise.
- Parameters:
- file_path (required)
- Should be absolute or relative to OpenACS /packages dir or one of its parent dirs.
- Author:
- Peter Marklund
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- apm_guess_file_type
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 { $prefix eq "" } { # No prefix - this is considered a catalog file set return_value 1 } else { # Catalog files don't have a prefix before the package_key set return_value 0 } } return $return_valueXQL Not present: Generic, PostgreSQL, Oracle