protected function cleanupChunks(){
        foreach (scandir($this->chunksFolder) as $item){
            if ($item == "." || $item == "..")
                continue;

            $path = $this->chunksFolder.DIRECTORY_SEPARATOR.$item;

            if (!is_dir($path))
                continue;

            if (time() - filemtime($path) > $this->chunksExpireIn){
                $this->removeDir($path);
            }
        }
    }
protected function cleanupChunks(){
        foreach (scandir($this->chunksFolder) as $item){
            if ($item == "." || $item == "..")
                continue;

            $path = $this->chunksFolder.DIRECTORY_SEPARATOR.$item;

            if (!is_dir($path))
                continue;

            if (time() - filemtime($path) > $this->chunksExpireIn){
                $this->removeDir($path);
            }
        }
    }
protected function cleanupChunks ( ) { foreach ( scandir ( $ this -> chunksFolder ) as $ item ) { if ( $ item == "." || $ item == ".." ) continue ; $ path = $ this -> chunksFolder . DIRECTORY_SEPARATOR . $ item ; if ( ! is_dir ( $ path ) ) continue ; if ( time ( ) - filemtime ( $ path ) > $ this -> chunksExpireIn ) { $ this -> removeDir ( $ path ) ; } } }
Deletes all file parts in the chunks folder for files uploaded
more than chunksExpireIn seconds ago
Deletes all file parts in the chunks folder for files uploaded more than chunksExpireIn seconds ago