public function readStream(string
$location) { $location =
$this->
preparePath($location);
return $this->filesystem->
readStream($location);
} public function listContents(string
$location, bool
$deep = self::LIST_SHALLOW
): DirectoryListing
{ $location =
$this->
preparePath($location);
return new DirectoryListing(array_map( function DStorageAttributes
$info) { if ($info instanceof DirectoryAttributes
) { return new DirectoryAttributes( $this->
stripPath($info->
path()),
$info->
visibility(),
$info->
lastModified(),
$info->
extraMetadata() );
} if ($info instanceof FileAttributes
) {