subfolder(
FOLDER
,
SUBFOLDER
)

The subfolder( function returns the folder id of a subfolder of a specified folder


Parameters

This function has two parameters:

folder – the original folder

subfolder – the desired subfolder. This could be two or more levels deep, in which case each folder name should be separated by / (for compatibility with older versions of Panorama, a colon (:) is also accepted).


Description

This function returns the folder ID of a subfolder of a specified folder.

subfolder(info("userfolder"),"documents") ☞ /Users/johnsmith/documents

You can specify a subfolder of a subfolder (for as many levels deep as you need).

subfolder(info("userfolder"),"dropbox/personal") ☞ /Users/johnsmith/dropbox/personal

For compatibility with older versions of Panorama, a colon (:) is also accepted as the subfolder separator.

subfolder(info("userfolder"),"dropbox:personal") ☞ /Users/johnsmith/dropbox/personal

Note: This function is equivalent to:

folder(folderpath(thefolder)+replace(subfolder,":",info("foldersepchar")))

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.