build path from resource name in listdir method
added stub method isdir