Product Logo

CNS Image

Import, edit, and export Images in the FileMaker environment

Functions

CNSImage_Folder_List

NameCNSImage_Folder_List
Description

Returns a list of files and folders at the specified path.

Return TypeText
FormatCNSImage_Folder_List ( Path ; Wildcard ; FieldSeparator ; RowSeparator )
Required Parameters
Path

The path to the folder to list.

Optional Parameters
Wildcard

Defines a file name pattern to determine which files to list. [eg. “*.txt” would list all files with a “txt” file extension; default is to list all files.]

FieldSeparator

Defines the separator to use between the fields of information about a single file. [Default is "

RowSeparator

Defines the separator to use between multiple files. [Default is a return.]

Examples
Example 1

Lists the files and folders found in the "Images" folder.

CNSImage_Folder_List ( "~/Desktop/Images" )
Example 2

Lists only JPG images found in the "Images" folder.

CNSImage_Folder_List ( "C:\Users\Bob\Desktop\Images" ; "*.jpg" )
Example 3

Lists the files and folders found in the "Images" folder with a Field separator of a semicolon and and a Row separator of "[Row]".

CNSImage_Folder_List ( "~/Desktop/Images" ; ""; ";"; "[Row] )