diff --git a/src/StreamWrapper/Foxml.php b/src/StreamWrapper/Foxml.php index 4a4d834..5eecf75 100644 --- a/src/StreamWrapper/Foxml.php +++ b/src/StreamWrapper/Foxml.php @@ -96,8 +96,8 @@ protected function getLocalPath($uri = NULL) { $realpath = $this->fileSystem->realpath($path); if (!$realpath) { - // This file does not yet exist. - $realpath = $this->fileSystem->realpath(dirname($path)) . '/' . + // This file does not yet exist, or $path references something remote. + $realpath = $this->fileSystem->dirname($path) . '/' . $this->fileSystem->basename($path); }