public function MinisiteArchive::filesList in Mini site 7
Return files listing.
1 call to MinisiteArchive::filesList()
- MinisiteArchive::filesTree in includes/
minisite.archive.inc - Return files tree listing.
File
- includes/
minisite.archive.inc, line 65 - Minisite archive class.
Class
- MinisiteArchive
- Class MinisiteArchive.
Code
public function filesList() {
$listing = $this->archiver
->listContents();
foreach ($listing as $k => $file) {
if (strpos(strtolower($file), '.ds_store') !== FALSE) {
$this
->fileRemove($file);
unset($listing[$k]);
}
if (strpos(strtolower($file), '__macosx') !== FALSE) {
unset($listing[$k]);
$this
->fileRemove($file);
}
if (strpos(strtolower($file), '_notes') !== FALSE) {
$this
->fileRemove($file);
unset($listing[$k]);
}
if (strpos(strtolower($file), '.dropbox') !== FALSE) {
$this
->fileRemove($file);
unset($listing[$k]);
}
if (strpos(strtolower($file), 'thumbs.db') !== FALSE) {
$this
->fileRemove($file);
unset($listing[$k]);
}
if (strpos(strtolower($file), 'desktop.ini') !== FALSE) {
$this
->fileRemove($file);
unset($listing[$k]);
}
if (!$file) {
unset($listing[$k]);
}
}
return $listing;
}