apm_get_watchable_files (private)

 apm_get_watchable_files package_key

Defined in packages/acs-tcl/tcl/apm-file-procs.tcl

Get a list of paths relative to server root of watchable files in the given package

Parameters:
package_key (required)
Key of the package to get paths for
Author:
Peter Marklund

Partial Call Graph (max 5 caller/called nodes):
%3 apm_cancel_all_watches apm_cancel_all_watches (public) apm_get_watchable_files apm_get_watchable_files apm_cancel_all_watches->apm_get_watchable_files apm_watch_all_files apm_watch_all_files (public) apm_watch_all_files->apm_get_watchable_files ad_find_all_files ad_find_all_files (public) apm_get_watchable_files->ad_find_all_files ad_make_relative_path ad_make_relative_path (public) apm_get_watchable_files->ad_make_relative_path apm_file_watchable_p apm_file_watchable_p (public) apm_get_watchable_files->apm_file_watchable_p

Testcases:
No testcase defined.
Source code:
    set watchable_files [list]

    set files [ad_find_all_files $::acs::rootdir/packages/$package_key]
    foreach file [lsort $files] {
        set rel_path [ad_make_relative_path $file]
        if { [apm_file_watchable_p $rel_path] } {
            lappend watchable_files $rel_path
        }
    }

    return $watchable_files
Generic XQL file:
packages/acs-tcl/tcl/apm-file-procs.xql

PostgreSQL XQL file:
packages/acs-tcl/tcl/apm-file-procs-postgresql.xql

Oracle XQL file:
packages/acs-tcl/tcl/apm-file-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: