[BUGFIX] Improve file handling on Windows systems 72/36372/2
authorNicole Cordes <typo3@cordes.co>
Thu, 29 Jan 2015 14:26:43 +0000 (15:26 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 29 Jan 2015 17:19:49 +0000 (18:19 +0100)
commitc9e8f1d48dc382030b99602f83a6bbef9cf1c797
treea07827271c2b89ee05a3663a68c933eea2a89b92
parent46015c8510dbfcc5a51a747ebeae2dc664184fa2
[BUGFIX] Improve file handling on Windows systems

Calling unlink() on a symlink that points to a directory
fails on Windows. Solution is to use rmdir() instead to
remove the symlink.
Furthermore it fixes a wrong usage of DIRECTORY_SEPARATOR
within the FileHandlingUtility.

Releases: master, 6.2
Resolves: #64409
Change-Id: Idc6ff3eb1214ed8f5cb0f69f15a2d5a6a3dcfafe
Reviewed-on: http://review.typo3.org/36372
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php