Fix OC_Helper::rmdirr for nested symlinks (#25255)
This commit is contained in:
parent
4ac256ea6c
commit
21bdd3005b
|
@ -221,7 +221,9 @@ class OC_Helper {
|
|||
|
||||
foreach ($files as $fileInfo) {
|
||||
/** @var SplFileInfo $fileInfo */
|
||||
if ($fileInfo->isDir()) {
|
||||
if ($fileInfo->isLink()) {
|
||||
unlink($fileInfo->getPathname());
|
||||
} else if ($fileInfo->isDir()) {
|
||||
rmdir($fileInfo->getRealPath());
|
||||
} else {
|
||||
unlink($fileInfo->getRealPath());
|
||||
|
|
Loading…
Reference in New Issue