public static boolean inProfile(File path){
  if (path.getParentFile() != null) {
    if (Profile.isProfile(path.getParentFile())) {
      return true;
    }
    return Profile.inProfile(path.getParentFile());
  }
  return false;
}

public static boolean inProfile ( File path ) { if ( path . getParentFile ( ) != null ) { if ( Profile . isProfile ( path . getParentFile ( ) ) ) { return true ; } return Profile . inProfile ( path . getParentFile ( ) ) ; } return false ; }
test if the given path is within a directory that is a profile .
