isDir() public méthode

Checks if a directory exists.
public isDir ( string $dir ) : boolean
$dir string Directory path
Résultat boolean
Exemple #1
0
 /**
  * Tests directory existence.
  *
  * @depends testMkdir
  * @depends testPut
  */
 public function testIsDir()
 {
     $this->assertTrue($this->client->isDir($this->dir));
     $this->assertFalse($this->client->isDir('dummy'));
     // The function must return false for files
     $this->assertFalse($this->client->isDir($this->file));
 }