Fenix Manual
Fenix Manual
Command Reference
File Commands

Cd
Chdir
Fclose
Feof
Fgets
File
File_Exists
Flength
Fopen
Fputs
Fread
Fseek
Ftell
Fwrite
Glob
Mkdir
Rmdir

Glob
Last Modified: May 30, 2005 00:05AM
(0.84 +)
Description

STRING GLOB ("PATTERN")
Looks for files in the current directory that agree with the indicated pattern

PARAMETERS
STRING PATTERN: Pattern search

RETURN VALUE
STRING: Name of following file or "" if they are not left more.

DESCRIPTION
Looks for any file that agrees with the indicated pattern. The pattern is a name of file in which comodín "" it indicates "any character" and comodín "*" indicates "one or more characters any". The most habitual use is "*,*"to look for all the present files. Also it is possible to indicate a relative directory (for example, "FPG /*.*") in addition to the pattern.

This function gives back the name of the first file that finds and, in successive calls with the same pattern, is giving back the rest of files that agree with the pattern. When no longer they are left more files, or after the first call if were no, it gives back a chain in target. The file name that is giving back this function does not contain the directory.

This stuffed function in addition, whenever it is called, global structure FILEINFO with the following information: FILEINFO.PATH: Directory where is file

FILEINFO.NAME: Complete name of file
FILEINFO.DIRECTORY: It contains TRUE if the file is a directory, or FALSE if it is a current file.
FILEINFO.HIDDEN: It contains TRUE if the file is hidden.
FILEINFO.READONLY: It contains TRUE if the file does not have activated writing permissions.
FILEINFO.CREATED: A text chain that contains the date and hour of creation of the file.
FILEINFO.MODIFIED: A text chain that contains the date and hour of the last access to the file.


Also see:
File_Exists: Determines if the file exists or not in the specified route

User Contributed Notes
Glob
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Sun, 29 May 2005 - 22:59:59

Manual © 2005 By Gary Moncrieff(Dazzy), Notes belong to their respective posters