[BUGFIX] Pass path instead of object to fileExistsInFolder
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / ResourceStorage.php
index 9362084..70a506a 100644 (file)
@@ -2389,7 +2389,7 @@ class ResourceStorage {
                        // The destinations file
                        $theDestFile = $theTestFile;
                        // If the file does NOT exist we return this fileName
-                       if (!$this->driver->fileExistsInFolder($theDestFile, $folder)) {
+                       if (!$this->driver->fileExistsInFolder($theDestFile, $folder->getIdentifier())) {
                                return $theDestFile;
                        }
                }