private def wandering()

in src/main/scala/com/twitter/iago/server/ParrotServer.scala [219:231]


  private def wandering(fileName: String): Boolean = {
    val f = new File(fileName)
    val p = f.getParent()
    if (p == null) return false
    val there = try {
      new File(p).getCanonicalPath
    } catch {
      case e: IOException =>
        log.info("bad log file requested: %s: %s", fileName, e)
        throw new RuntimeException("Can't find parent of log file %s".format(fileName), e)
    }
    there == new File(".").getCanonicalPath
  }