Product Logo

SMTPit Pro

Next Generation Email plug-in

Functions

SMTPit_Folder_List

NameSMTPit_Folder_List
Description

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

Return TypeText
FormatSMTPit_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.

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

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

SMTPit_File_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]".

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