src/Composer/Util/Filesystem.php
private function unlinkImplementation($path)
    {
        if (Platform::isWindows() && is_dir($path) && is_link($path)) {
            return rmdir($path);
        }

        return unlink($path);
    }
private function unlinkImplementation($path)
    {
        if (Platform::isWindows() && is_dir($path) && is_link($path)) {
            return rmdir($path);
        }

        return unlink($path);
    }
private function unlinkImplementation ( $ path ) { if ( Platform :: isWindows ( ) && is_dir ( $ path ) && is_link ( $ path ) ) { return rmdir ( $ path ) ; } return unlink ( $ path ) ; }
delete symbolic link implementation (commonly known as "unlink()")

symbolic links on windows which link to directories need rmdir instead of unlink

@param string $path

@return bool
delete symbolic link implementation ( commonly known as unlink () )