}else{
//Shared folder case
if(file.getAbsolutePath().endsWith("Shared")){
//Shared folder root
return new OverEncryptedSharedFolder(this, userLoggedID);
}else{
//Shared subfolders
//Retrieve owner folder id
int friendID = retrieveOwnerIDFromSharedFilePath(file.getAbsolutePath());