fix resource-list(directory tree is supported now)