Skip to content
Snippets Groups Projects
Commit 2d5138fc authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 9f57eec8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment