stats = normalize(stats, root, temporary);
List<ResourceInfo> results = new ArrayList<ResourceInfo>();
for (FileStatus stat : stats) {
counter.add(1);
ResourceInfo resource = new ResourceInfo(
profile.getId(),
stat.getPath().toString(),
FileSystemCompatibility.isDirectory(stat));
results.add(resource);
}