Return statistics path based on root and file path.
Return statistics path based on root and file path. If root is not specified statistics file is stored side-by-side with the original file, otherwise, directory structure is replicated starting with root:
val path = "/a/b/c/file" val root = "/x/y/z" // then statistics file will stored: val stats = "/x/y/z/a/b/c/.statistics-file"
Return statistics path status for a provided root file path
StatisticsPathResolver is a simple class to find the statistics path based on a file path. Also takes into account possible root to store/read statistics. Note that root may not necessarily exist.