[file] refactoring of new file endpoint location

This works now for arbitrary nodes, irrespective of their type.
Status Job ID Name Coverage
  Build
failed #1068
build

 
Name Stage Failure
failed
build Build There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job trace