list.add(new OverEncryptedFriendsFile(factory, folderPath + "/" + file.getName(), false));
}
}
//Retrieve folder shared
TreePaths tree = new TreePaths("/" + ownerID);
tree.addArrayOfPaths(pathsAllowed);
ArrayList<String> pathViewable = tree.getDirectSubfolders(folderPath);
for (Iterator<String> iterator = pathViewable.iterator(); iterator.hasNext();) {
String path = iterator.next();
list.add(new OverEncryptedFriendsFolder(factory, path, ownerID, loggedUserID));
}