Glob

From SwiftAPI

Jump to: navigation, search

PHP

array glob ( string $pattern [, int $flags = 0 ] )
$path = '/etc/*.conf';
$files = glob($path);

Ruby

ruby-doc.org

glob( pattern, [flags] )array
glob( pattern, [flags] ) {| filename | block }nil
path = '/etc/*.conf'
files = Dir.glob(path)
Personal tools