Upstream spatie/temporary-directory state of the touched files before 6caf4cd401

This commit is contained in:
upstream committed 2026-09-04 09:42:16 +02:00
1 parent f1a81ad34a
commit 539be424ae
2 files changed
+1 -25

No files matched your search

+1 -6
View File
@@ -163,12 +163,7 @@ class TemporaryDirectory
protected function isFilePath(string $path): bool
{
// Only the last segment can be a filename; a dot in a parent segment would
// misclassify a directory.
$lastSeparator = strrpos($path, DIRECTORY_SEPARATOR);
$lastSegment = $lastSeparator === false ? $path : substr($path, $lastSeparator + 1);
return str_contains($lastSegment, '.');
return str_contains($path, '.');
}
protected function deleteDirectory(string $path): bool