fileExists() public method

Check if a file exists.
public fileExists ( string $fn, boolean $safe ) : boolean
$fn string
$safe boolean
return boolean
Example #1
0
 public function testFileExistsSafe()
 {
     $app = $this->getApp();
     $handler = new UtilsHandler($app);
     $result = $handler->fileExists(__FILE__, true);
     $this->assertFalse($result);
 }