« Previous | Next » 

Revision 0a9a47bb


Added by Bastian Waidelich almost 10 years ago

[BUGFIX] Files::emptyDirectoryRecursively affects targets of symlinks

\TYPO3\FLOW3\Utility\Files::removeDirectoryRecursively() fails to
properly unlink directory symlinks on Windows.

Thus \TYPO3\FLOW3\Utility\Files::emptyDirectoryRecursively()
iterates through the target files of a symlinked folder and
removes them!

This change fixes this by introducing a custom unlink() function
that can remove a symlink regardless of it's type (file/directory).

Change-Id: Iad2e358ec8a94fe91dd27eda5737f075f277f2dc
Fixes: #32550
Releases: 1.0, 1.1

  • added
  • modified
  • copied
  • renamed
  • deleted