summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRobby <robby@k-state.edu>2018-04-24 10:42:36 -0500
committerRobby <robby@k-state.edu>2018-04-24 12:02:45 -0500
commit5593e0c57eb4a85060575e1f78b2aea857adba2d (patch)
tree980949735ce1412aa6249fcea9601b040418ec3f /core
parent13d026574a5de41c42482d3ef20ab9ec7dd3bc20 (diff)
downloadmill-5593e0c57eb4a85060575e1f78b2aea857adba2d.tar.gz
mill-5593e0c57eb4a85060575e1f78b2aea857adba2d.tar.bz2
mill-5593e0c57eb4a85060575e1f78b2aea857adba2d.zip
Fixed PathRef's FileVisitor IOException on dir symlinks.
Diffstat (limited to 'core')
-rw-r--r--core/src/mill/eval/PathRef.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/mill/eval/PathRef.scala b/core/src/mill/eval/PathRef.scala
index 0fbc18f8..5bac93b2 100644
--- a/core/src/mill/eval/PathRef.scala
+++ b/core/src/mill/eval/PathRef.scala
@@ -27,6 +27,8 @@ object PathRef{
val digestOut = new DigestOutputStream(DummyOutputStream, digest)
jnio.Files.walkFileTree(
path.toNIO,
+ java.util.EnumSet.of(jnio.FileVisitOption.FOLLOW_LINKS),
+ Integer.MAX_VALUE,
new FileVisitor[jnio.Path] {
def preVisitDirectory(dir: jnio.Path, attrs: BasicFileAttributes) = {
digest.update(dir.toAbsolutePath.toString.getBytes)