private function tryDeleteFile($path) {
        $interval = 100000;
        $totalTime = 0;

        while (file_exists($path) && !unlink($path)) {
            if ($totalTime >= $this->accessTime) {
                return false;
            }

            usleep($interval);

            $totalTime += $interval;
        }

        return true;
    }
private function tryDeleteFile($path) {
        $interval = 100000;
        $totalTime = 0;

        while (file_exists($path) && !unlink($path)) {
            if ($totalTime >= $this->accessTime) {
                return false;
            }

            usleep($interval);

            $totalTime += $interval;
        }

        return true;
    }
private function tryDeleteFile ( $ path ) { $ interval = 100000 ; $ totalTime = 0 ; while ( file_exists ( $ path ) && ! unlink ( $ path ) ) { if ( $ totalTime >= $ this -> accessTime ) { return false ; } usleep ( $ interval ) ; $ totalTime += $ interval ; } return true ; }
Trying to delete the specified file.

@param string $path The path to file to remove.

@return bool
Trying to delete the specified file .