getDirectoryContents ignoreFileArray
Permalink
Could someone please tell me if the ignoreFileArray parameter accepts wildcards, regular expressions, or just a list of filesnames? See usage example below:
Thanks in advance...
Jim K
$fh = Loader::helper('file'); $ignoreFilesArray = array("index.php", "index.html", "index.htm"); $filelist = $fh->getDirectoryContents($fileSystemPath, $ignoreFilesArray);
Thanks in advance...
Jim K
*ack* That's what I was afraid of, but not that big a problem. One more question, does $ignoreFilesArray require full filesystem path on it's filenames, or just the filename? I bet it wants the full filesystem path.
So it would make sense call getDirectoryContents and apply your own regex filter on the result to come up with the new list of filename to process. Let me ponder on that one a little and i'll get back with my solution :)
Thanks! (Ya gotta love this place)
So it would make sense call getDirectoryContents and apply your own regex filter on the result to come up with the new list of filename to process. Let me ponder on that one a little and i'll get back with my solution :)
Thanks! (Ya gotta love this place)
Please ignore my previous question. *brain sputter* I aready tested that. It only needs an array of filenames without the full file system path :)
it also takes directory names :)
Ah, that's cool. I thought I had seen an example someplace that used file paths with the filename, but I think I've slept since then *yawn* :)
just uses in_array.
so I think it has to just be file names,