isDirectory() public method

public isDirectory ( string $path ) : boolean
$path string
return boolean
Esempio n. 1
0
 /**
  * @param string $filepath
  */
 private function createDirectoryIfItDoesExist($filepath)
 {
     $path = dirname($filepath);
     if (!$this->filesystem->isDirectory($path)) {
         $this->filesystem->makeDirectory($path);
     }
 }
Esempio n. 2
0
 /**
  * @param string $xml
  */
 private function writeConfigFile($xml)
 {
     if (!$this->filesystem->isDirectory($this->directory)) {
         $this->filesystem->makeDirectory($this->directory);
     }
     $this->filesystem->putFileContents($this->getFilePath(), $xml);
 }