CodeExplorer stripPrefix example
/**
* {@inheritdoc}
*/
public function listContents($directory = '',
$recursive = false
) { $this->
checkPath($directory);
return array_map( function D
$info) { $info['dirname'
] =
$this->
stripPrefix($info['dirname'
]);
$info['path'
] =
$this->
stripPrefix($info['path'
]);
return $info;
},
$this->filesystem->
listContents($this->prefix .
$directory,
$recursive) );
} /**
* {@inheritdoc}
*/