pathcontains(
PATH
,
FILE
)

The pathcontains( function checks to see if a folder contains a specified file.


Parameters

This function has two parameters:

path – path to the folder to be checked.

file – name of file or folder.


Description

This function checks to see if a folder contains a specified file (or folder).

pathcontains("~/Dropbox","Photos") ☞ -1 (true)
pathcontains("~/Dropbox","Maps") ☞ 0 (false)

Note: This function is equivalent to:

arraycontains(foldercontents(path),thefile,¶)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.