exists() public method

Checks if a file exists.
public exists ( string $path ) : boolean
$path string File path
return boolean
Esempio n. 1
0
 /**
  * Tests file existence.
  *
  * @depends testPut
  */
 public function testExists()
 {
     $this->assertTrue($this->client->exists($this->file));
     $this->assertFalse($this->client->exists($this->dir . '/dummy.txt'));
     // \Directory must return false
     $this->assertFalse($this->client->exists($this->dir));
 }