fs::get_folder (public)
fs::get_folder -name name -parent_id parent_id
Defined in packages/file-storage/tcl/file-storage-procs.tcl
Retrieve the folder_id of a folder given its name and parent folder.
- Switches:
- -name (required)
- Internal name of the folder, must be unique under a given parent_id
- -parent_id (required)
- The parent folder to look under
- Returns:
- folder_id of the folder, or null if no folder was found by that name
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- fs_create_folder_using_api
Source code: return [db_string select_folder {} -default ""]Generic XQL file: <fullquery name="fs::get_folder.select_folder"> <querytext> select item_id from cr_items where parent_id = :parent_id and name = :name </querytext> </fullquery>packages/file-storage/tcl/file-storage-procs.xql
PostgreSQL XQL file: packages/file-storage/tcl/file-storage-procs-postgresql.xql
Oracle XQL file: packages/file-storage/tcl/file-storage-procs-oracle.xql