Mozilla Skin
BLOG | FORUMS | WIKI | DEVELOPERS | MY EYEOS | PROFESSIONAL SERVICES | PROJECT PAGE

Service vfs real getDirContent

From eyeOS Wiki

Contents

Syntax

vfs('real_getDirContent', array($dirToRead, $exp))

or

service('vfs', 'real_getDirContent', array($dirToRead, $exp))

Description

Retuns a list of the real files found in the specified dir.

Arguments

dirToRead: path to the dir to be read.

exp: pattern to determine which files to get. It has the same form as the expression used in the native glob() PHP function. In case no is specified, this function will return all the real files found in the directory.

Return values

If the directory exists and there are enough permissions to read the directory, returns an indexed array containing the filenames of the files found in dirToRead (matching the specified search pattern).