Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
allow symlinked local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrh committed Jul 23, 2018
1 parent 84b4f18 commit 69b413c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/libisabelle/src/main/scala/Platform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ sealed abstract class Platform {
withIsabelleVersion(localStorage.resolve("user"), version, true)

private def acquireLock(): Option[FileLock] = {
Files.createDirectories(localStorage)
if (!Files.isDirectory(localStorage)) // https://github.com/larsrh/libisabelle/issues/71
Files.createDirectories(localStorage)
FileChannel.open(lockFile, StandardOpenOption.CREATE, StandardOpenOption.WRITE).tryLock() match {
case null =>
logger.warn("lock could not be acquired")
Expand Down

0 comments on commit 69b413c

Please sign in to comment.