Should this be `(.getCanonicalFile (File. root-dir))`?
I am not sure whether FileAppender#getFile will give the canonical path.  If it does not, and if the Appender's path has a symlink, then the new condition could fail even for legitimate requests.