• Publicity: Public Only All

content-procs.tcl

Functions that the content-repository uses to interact with the filesystem.

Location:
packages/acs-content-repository/tcl/content-procs.tcl
Created:
Sat May 5 13:45 2001
Author:
Dan Wickstrom <dcwickstrom@earthlink.net>
CVS Identification:
$Id: content-procs.tcl,v 1.16.2.8 2024/04/23 16:21:55 antoniop Exp $

Procedures in this file

Detailed information

cr_create_content_file (public)

 cr_create_content_file [ -move ] item_id revision_id client_filename

Copies the file passed by client_filename to the content repository file storage area, and it returns the relative file path from the root of the content repository file storage area.. if the -move flag is given the file is renamed instead

Switches:
-move (optional, boolean)
Parameters:
item_id (required)
revision_id (required)
client_filename (required)

Testcases:
xotcl_core_tutorial_4, test_cr_items

cr_create_content_file_from_string (public)

 cr_create_content_file_from_string item_id revision_id str

Copies the string to the content repository file storage area, and it returns the relative file path from the root of the content repository file storage area.

Parameters:
item_id (required)
revision_id (required)
str (required)

Testcases:
No testcase defined.

cr_create_content_file_path (public)

 cr_create_content_file_path item_id revision_id

Creates a unique file in the content repository filesystem based on the item_id and revision_id of the content item.

Parameters:
item_id (required)
revision_id (required)

Testcases:
No testcase defined.

cr_file_size (public)

 cr_file_size relative_file_path

Returns the size of a file stored in the content repository. Takes the relative file path of the content repository file as an argument.

Parameters:
relative_file_path (required)

Testcases:
No testcase defined.
[ show source ]