Lines Matching refs:MODE
21 # get_layout_tests_dir_contents.php?path=PATH&recurse=RECURSE&separator=SEPARATOR&mode=MODE
26 # MODE = [folders|files] (defaults to files) - if 'folders' then lists only folders,
45 function getAllFilesUnderAsArray($relPath, $recurse, $mode) {
60 if ($mode == 'folders') {
64 $result = array_merge($result, getAllFilesUnderAsArray($filePath, $recurse, $mode));
66 } else if ($mode == 'files') {
85 if (strtolower($_GET['mode']) == 'folders') {
86 $mode = 'folders';
88 $mode = 'files';
106 foreach (getAllFilesUnderAsArray($relPath, $recurse, $mode) as $i => $value) {