Go to the source code of this file.
Functions | |
findFiles ($dir, $exts) | |
Search a directory for files with one of a set of extensions. | |
splitFilename ($filename) | |
Split a filename into filename and extension. | |
findAuxFile ($file, $auxExtension, $maxStrip=1) | |
Find an auxilliary file with the given extension, matching the give base file path. | |
getFileCommentFromSourceWiki ($wiki_host, $file) | |
getFileUserFromSourceWiki ($wiki_host, $file) |
Definition in file importImages.inc.
findAuxFile | ( | $ | file, | |
$ | auxExtension, | |||
$ | maxStrip = 1 | |||
) |
Find an auxilliary file with the given extension, matching the give base file path.
$maxStrip determines how many extensions may be stripped from the original file name before appending the new extension. For example, with $maxStrip = 1 (the default), file files acme.foo.bar.txt and acme.foo.txt would be auxilliary files for acme.foo.bar and the extension ".txt". With $maxStrip = 2, acme.txt would also be acceptable.
$file | base path | |
$auxExtension | the extension to be appended to the base path | |
$maxStrip | the maximum number of extensions to strip from the base path (default: 1) |
Definition at line 67 of file importImages.inc.
References $n.
findFiles | ( | $ | dir, | |
$ | exts | |||
) |
Search a directory for files with one of a set of extensions.
$dir | Path to directory to search | |
$exts | Array of extensions to search for |
Definition at line 19 of file importImages.inc.
References $ext, $files, and splitFilename().
getFileCommentFromSourceWiki | ( | $ | wiki_host, | |
$ | file | |||
) |
getFileUserFromSourceWiki | ( | $ | wiki_host, | |
$ | file | |||
) |
splitFilename | ( | $ | filename | ) |
Split a filename into filename and extension.
$filename | Filename |
Definition at line 45 of file importImages.inc.
References $ext, $filename, and $fname.
Referenced by findFiles().