removeEmptyDirectory() public méthode

public removeEmptyDirectory ( string $directoryPath ) : boolean
$directoryPath string
Résultat boolean
 /**
  * @param PackageInterface $package
  *
  * @throws FilesystemException
  */
 protected function removePackageVendorSymlink(PackageInterface $package)
 {
     if ($this->config->isSymlinkEnabled() && $this->filesystem->removeSymlink($this->getPackageVendorSymlink($package))) {
         $this->io->write(array('  - Deleting symlink for <info>' . $package->getPrettyName() . '</info> ' . '(<fg=yellow>' . $package->getPrettyVersion() . '</fg=yellow>)', ''));
         $symlinkParentDirectory = dirname($this->getPackageVendorSymlink($package));
         $this->filesystem->removeEmptyDirectory($symlinkParentDirectory);
     }
 }
 /**
  * @test
  */
 public function removeEmptyDirectoryWhenNotExists()
 {
     $filesystem = new SymlinkFilesystem();
     $this->assertFalse($filesystem->removeEmptyDirectory($this->testDir . '/bar'));
 }