You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixes edge case on windows where PHP does not generate a PHP Warning but instead returns a wrong result https://bugs.php.net/bug.php?id=71103
* Improved error reporting on `unlink` used in `remove()`
thrownewIOException(sprintf('Cannot rename because the target "%s" already exist.', $target));
258
263
}
259
264
@@ -262,6 +267,22 @@ public function rename($origin, $target, $overwrite = false)
262
267
}
263
268
}
264
269
270
+
/**
271
+
* Tells whether a file exists and is readable.
272
+
*
273
+
* @param string $filename Path to the file.
274
+
*
275
+
* @throws IOException When windows path is longer than 258 characters
276
+
*/
277
+
privatefunctionisReadable($filename)
278
+
{
279
+
if ('\\' === DIRECTORY_SEPARATORANDstrlen((string) $filename) > 258) {
280
+
thrownewIOException(sprintf('Could not check if file is readable because path length exceeds 258 characters for file "%s"', $filename), 0, null, $filename);
0 commit comments