foldercontains(
PATH
,
FILE
)

The foldercontains( function checks to see if a folder contains a specified file. See also the pathcontains( function.


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. See also the pathcontains( function.

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

Note: This function is equivalent to:

arraycontains(listfiles(thefolder,""),thefile,¶)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.