Example #1
0
 /**
  * Read recursively
  *
  * @param null $path
  * @return string[]
  */
 public function readRecursively($path = null)
 {
     $result = [];
     $paths = $this->driver->readDirectoryRecursively($this->driver->getAbsolutePath($this->path, $path));
     /** @var \FilesystemIterator $file */
     foreach ($paths as $file) {
         $result[] = $this->getRelativePath($file);
     }
     sort($result);
     return $result;
 }