project.delete treats symlinks differently comparing Ubuntu to Windows 10 Fall Edition.
If using Cygwin with the environment variable CYGWIN set to “winsymlinks:nativestrict”, symlinks start to work like on Linux. My guess is that this started to work without being priviliged in the version “Creator’s Update”, arriving in September 2017.
Now, deleting a directory with project.delete (where followSymlinks is false by default) on Windows Version 10.0.16299.125, may not work correctly.
- If the directory to be deleted contains a symlink to a file, the action is correct. The symlink is deleted but the file linked to is kept (SYMLINK).
- if the directory to be deleted contains a symlink to a directory, the directory’s contents (but not the directory) are wiped out prior deleting the symlink itself (SYMLINKD).
It is probably not related to Gradle Delete task follows NTFS junction points when followSymlinks=false