How to convert a path string to IResource?

try adding {“path”} and check if it is accepting

other wise create one variable of ienumberable and the path to it

Regards