Classes/Service/RemoveService.php
public function softRemoveDir(string $absoluteDirName)
    {
        if (\is_dir($absoluteDirName)) {
            $tempAbsoluteDir = \rtrim($absoluteDirName, '/') . '_' . GeneralUtility::milliseconds() . '/';
            \rename($absoluteDirName, $tempAbsoluteDir);
            $this->removeDirs[] = $tempAbsoluteDir;
        }

        return $this;
    }
public function softRemoveDir(string $absoluteDirName)
    {
        if (\is_dir($absoluteDirName)) {
            $tempAbsoluteDir = \rtrim($absoluteDirName, '/') . '_' . GeneralUtility::milliseconds() . '/';
            \rename($absoluteDirName, $tempAbsoluteDir);
            $this->removeDirs[] = $tempAbsoluteDir;
        }

        return $this;
    }
public function softRemoveDir ( string $ absoluteDirName ) { if ( \ is_dir ( $ absoluteDirName ) ) { $ tempAbsoluteDir = \ rtrim ( $ absoluteDirName , '/' ) . '_' . GeneralUtility :: milliseconds ( ) . '/' ; \ rename ( $ absoluteDirName , $ tempAbsoluteDir ) ; $ this -> removeDirs [ ] = $ tempAbsoluteDir ; } return $ this ; }
Rename the dir and mark them as "to remove".
Speed up the remove process.

@param string $absoluteDirName

@return RemoveService
Rename the dir and mark them as to remove . Speed up the remove process .