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):
%3 test_fs_create_folder_using_api fs_create_folder_using_api (test file-storage) fs::get_folder fs::get_folder test_fs_create_folder_using_api->fs::get_folder db_string db_string (public) fs::get_folder->db_string packages/file-storage/lib/recent.tcl packages/file-storage/ lib/recent.tcl packages/file-storage/lib/recent.tcl->fs::get_folder

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

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