publish::write_multiple_files (private)

 publish::write_multiple_files url text [ root_path ]

Defined in packages/acs-content-repository/tcl/publish-procs.tcl

Parameters:
url - Relative URL of the file to write
text - A string of text to be written to the URL
root_path (optional) - Use this root path (default empty)
See Also:

Partial Call Graph (max 5 caller/called nodes):
%3 publish::write_content publish::write_content (public) publish::write_multiple_files publish::write_multiple_files publish::write_content->publish::write_multiple_files publish::foreach_publish_path publish::foreach_publish_path (private) publish::write_multiple_files->publish::foreach_publish_path publish::mkdirs publish::mkdirs (public) publish::write_multiple_files->publish::mkdirs template::util::write_file template::util::write_file (public) publish::write_multiple_files->template::util::write_file

Testcases:
No testcase defined.
Source code:
    ns_log debug "publish::write_multiple_files: root_path = $root_path"
  foreach_publish_path $url {
    mkdirs $filename
    template::util::write_file $filename $text
    ns_chmod $filename 0764
    ns_log debug "publish::write_multiple_files: Wrote text to $filename"
  } $root_path
Generic XQL file:
packages/acs-content-repository/tcl/publish-procs.xql

PostgreSQL XQL file:
packages/acs-content-repository/tcl/publish-procs-postgresql.xql

Oracle XQL file:
packages/acs-content-repository/tcl/publish-procs-oracle.xql

[ hide source ]
Show another procedure: