Is there a easy way to get the filePath provided I know the Filename?
You can use the Path api:
Path
Path p = Paths.get(yourFileNameUri); Path folder = p.getParent();