sanırım ilgili kısım da burası:
public function delFolderfiles($path)
{
if ($handle = opendir($path))
{
while (false !== ($file = readdir($handle)))
{
if(is_file($path."/".$file))
{
unlink($path."/".$file);
}
}
closedir($handle);
}
}
public function getFolderFiles($path, $ext = ".zip")
{
$retArray = Array();
if ($handle = opendir($path))
{
while (false !== ($file = readdir($handle)))
{
if(is_file($path."/".$file))
{
if(stristr($file, $ext))
{
$retArray[] = $path."/".$file;
}
}
}
closedir($handle);
}
return $retArray;
}
/** PUBLIC FUNCTIONS: Biter... */