File
[ class tree: File ] [ index: File ] [ all elements ]

File: Find.php

Source Location: /File_Find-1.3.3/File/Find.php

Classes:

File_Find
Commonly needed functions searching directory trees

Page Details:

Includes:

require_once('PEAR.php') [line 22]

FILE_FIND_VERSION [line 24]

FILE_FIND_VERSION = '@package_version@'

[ Top ]



File_Find_match_shell [line 364]

mixed File_Find_match_shell( $pattern, $filename)

Package method to match via 'shell' pattern. Provided in global scope, because it should be called like 'preg_match' and 'eregi' and can be easily copied into other packages
  • Return: bool on success and PEAR_Error on failure
  • Author: techtonik <techtonik@php.net>


Parameters

   $pattern  
   $filename  
[ Top ]



_File_Find_match_shell_get_pattern [line 418]

string _File_Find_match_shell_get_pattern( $mask)

function used by File_Find_match_shell to convert 'shell' mask into pcre regexp. Some of the rules (see testcases for more): escaping all special chars and replacing . with \.

* with .* ? with .{1} also adding ^ and $ as the pattern matches whole filename



Parameters

   $mask  
[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:56:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.