|Modifier and Type||Method and Description|
Gets the local root containing the given
public static File getLocalRootContainingFile(File file)
file itself is the root of a repository, it is returned directly.
file is a directory or file inside the repository, the parent-directory
being the repository's root is returned.
file is not contained in any repository,
null is returned.
file- the directory or file for which to search the repository's local root. Must not be
fileis not located inside a repository.
Copyright © 2013–2018. All rights reserved.