sp_sync_cr_with_filesystem [ -file_add_proc file_add_proc ] \
[ -file_change_proc file_change_proc ] \
[ -file_unchanged_proc file_unchanged_proc ] \
[ -file_read_error_proc file_read_error_proc ] \
[ -folder_add_proc folder_add_proc ] \
[ -folder_unchanged_proc folder_unchanged_proc ] \
[ -package_id package_id ] fs_root root_folder_id \
[ static_page_regexp ]
Synchronize the content repository with the file system.
This creates entries in sp_folders and static_pages, so the static_page
functions must be used to delete entries.
- Switches:
- -file_add_proc (optional)
- The name of a Tcl proc to be called for each file
added. The full file path and the page_id will be
passed to it.
- -file_change_proc (optional)
- The name of a Tcl proc to be called for each file
changed in the database.
- -file_unchanged_proc (optional)
- The name of a Tcl proc to be called for each file
unchanged in the database.
- -file_read_error_proc (optional)
- -folder_add_proc (optional)
- The name of a Tcl proc to be called for each folder
added. The full file path and the folder_id will be
passed to it.
- -folder_unchanged_proc (optional)
- The name of a Tcl proc to be called for each folder
unchanged in the database.
- -package_id (optional)
- Optionally, the package id of the Static Pages
instance. If not specified, determined from ad_conn.
- Parameters:
-
fs_root - The starting path in the filesystem. Files below this point will
be scanned.
root_folder_id - The id of the root folder in the static-pages system (and in
the content repository) obtained from
static_page.get_root_folder.
static_page_regexp (optional) - A regexp to identify static pages.
- Author:
- Andrew Piskorski <atp@piskorski.com>
- Created:
- 2001/08/27
|