code: private boolean checkFilePath(String file, int depth) {
      // The file is either a node file or an edge file and needs to be stored at either:
      // flowGraphDir/nodeName/nodeName.properties (if it is a node file), or
      // flowGraphDir/nodeName/nodeName/edgeName.properties (if it is an edge file)
  
      Path filePath = new Path(file);
      String fileExtension = Files.getFileExtension(filePath.getName());
      if (filePath.depth() != depth || !checkFileLevelRelativeToRoot(filePath, depth)
          || !(this.javaPropsExtensions.contains(fileExtension))) {
        log.warn("Changed file does not conform to directory structure and file name format, skipping: "
            + filePath);
        return false;
      }
      return true;
    }
docs: check whether the file has the proper naming and hierarchy
  @param file the relative path from the repo root
  @return false if the file does not conform