Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/12696#discussion_r61043559
--- Diff: core/src/main/scala/org/apache/spark/util/Utils.scala ---
@@ -947,7 +945,9 @@ private[spark] object Utils extends Logging {
*/
def isSymlink(file: File): Boolean = {
if (file == null) throw new NullPointerException("File must not be
null")
- if (isWindows) return false
+ if (isWindows) {
+ return Files.isSymbolicLink(Paths.get(file.toURI))
--- End diff --
Let's just invoke this method as the body of this method, now that we can
use Java 7, for Windows and all platforms.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]