Commit 2d5138fc authored by alexpott's avatar alexpott

Issue #2170117 by Berdir: HEAD BROKEN (on Windows): CMI FileStorage fails with absolute paths.

parent 9f57eec8
......@@ -208,7 +208,8 @@ public function listAll($prefix = '') {
throw new StorageException($this->directory . '/ not found.');
}
$extension = '.' . static::getFileExtension();
$files = new \GlobIterator($this->directory . '/' . $prefix . '*' . $extension);
// \GlobIterator on Windows requires an absolute path.
$files = new \GlobIterator(realpath($this->directory) . '/' . $prefix . '*' . $extension);
$names = array();
foreach ($files as $file) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment