* @param file
* @return path
*/
public static String getFolderPath(final AbstractFile file) {
LinkedTreeNode parentFolder = file.getProperty(AbstractFile.parent);
String folderPath = file.getProperty(AbstractFile.name);
if (folderPath == null) {
folderPath = file.getProperty(GraphObject.id);
}
while (parentFolder != null) {
folderPath = parentFolder.getName().concat("/").concat(folderPath);
parentFolder = parentFolder.getProperty(AbstractFile.parent);
}
return "/".concat(folderPath);
}