private static boolean isOutFile(final File filePathName, final File inputMap) {
        final File relativePath = FileUtils.getRelativePath(inputMap.getAbsoluteFile(), filePathName.getAbsoluteFile());
        return !(relativePath.getPath().length() == 0 || !relativePath.getPath().startsWith(".."));
    }
private static boolean isOutFile ( final File filePathName , final File inputMap ) { final File relativePath = FileUtils . getRelativePath ( inputMap . getAbsoluteFile ( ) , filePathName . getAbsoluteFile ( ) ) ; return ! ( relativePath . getPath ( ) . length ( ) == 0 || ! relativePath . getPath ( ) . startsWith ( ".." ) ) ; }
Check if path falls outside start document directory

@param filePathName absolute path to test
@param inputMap absolute input map path
@return {@code true} if outside start directory, otherwise {@code false}