<<

Contents

Search

>>

 

GET_FILEINFO$

 

 

Function

 

 

Syntax:

GET_FILEINFO$(<Path>,<Files>,<Separator>,<Filetype>,<Infotype>,<Subdirectories>)

 

<Path>

= <STRING-EXPRESSION>

<Files>

= <STRING-EXPRESSION>

<Separator>

= <STRING-EXPRESSION>

<Filetype>

= <NUM-EXPRESSION>

<Infotype>

= <NUM-EXPRESSION>

<Subdirectories>

= <NUM-EXPRESSION>

 

 

Meaning:

Returns information about files.

 

GET_FILEINFO$ returns as result all found file- and directory names (sometimes incl. file length and date/time of change) with complete path. The single values are separated by <Separator> in the returned string.

 

If no files are found, GET_FILEINFO$ returns as result the empty string "".

 

If an error occurs, GET_FILEINFO$ returns the empty string and ERRORTEXT$ contains the error report.

 

Parameter:

Path

Specifies in which directory the <Files> are to be found.

Files

Specifies the files from which the file information is to be got. (e.g. *.zip).

Separator

The first character of <Separator> specifies which character is to separate the returned names from each other in the returned string. If <Separator> is the empty string "", the semi-colon ";" is the separator.

Filetype

Specifies the files to be found:

=1: only files, no directory names

=2: only directory names, no files

otherwise: files and directories

Infotype

Specifies which information is to be given in the result:

=0: filenames without path

=1: filenames with complete path

=2: Filenames with complete path and file length separated by <Separator>

otherwise: Filename with complete path, file length, date and time of the last change, separated by <Separator>

Subdirectories

<>0: All subdirectories of <Path> are searched as well.

=0: Only the directory <Path> is searched.

 

Sample:

INFO$ = GET_FILEINFO$("/sub","*.zip",";",1,1,1)

 

See also:

GET_FILEINFO_CLIENT$

FTP_GETFILEINFO$

GET_FILENAME$

GET_FILEPATH$

GET_ABSOLUTE_FILEPATH$

GET_FILESIZE

GET_FILECONTENT$

GET_DRIVES$

GET_DRIVES_CLIENT$