LuciferYang commented on code in PR #49347:
URL: https://github.com/apache/spark/pull/49347#discussion_r1901671633
##########
core/src/test/scala/org/apache/spark/util/UtilsSuite.scala:
##########
@@ -731,6 +732,52 @@ class UtilsSuite extends SparkFunSuite with
ResetSystemProperties {
assert(!sourceFile2.exists())
}
+ test("SPARK-50716: deleteRecursively - SymbolicLink To File") {
Review Comment:
The addition of this test is solely to improve coverage.
Without the current pr, since the `BasicFileAttributes` of a file are read
without using `LinkOption.NOFOLLOW_LINKS`, for symbolic links, the
`BasicFileAttributes` of the corresponding file are read instead.
As a result, it is treated as a RegularFile and deleted.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]