allow the resource name to be a directory