code: public static AbstractFile getFileByAbsolutePath(final SecurityContext securityContext, final String absolutePath) {
  
  		try {
  
  			return StructrApp.getInstance(securityContext).nodeQuery(AbstractFile.class).and(StructrApp.key(AbstractFile.class, "path"), absolutePath).getFirst();
  
  		} catch (FrameworkException ex) {
  			ex.printStackTrace();
  			logger.warn("File not found: {}", absolutePath);
  		}
  
  		return null;
  	}
docs: Find a file by its absolute ancestor path.
  
  File may not be hidden or deleted.
  
  @param securityContext
  @param absolutePath
  @return file