core-4914 add logic to differentiate filter files/ folders
refactor code. use path instead of id when calling service.
Ongoing