CIFS - the root node should not have a name.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31537 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2011-10-28 10:26:25 +00:00
parent 3685fb9395
commit b503a3c08c
4 changed files with 66 additions and 13 deletions

View File

@@ -679,6 +679,14 @@ public class ContentDiskDriver2 extends AlfrescoDiskDriver implements ExtendedD
// Get the file information for the node
finfo = getCifsHelper().getFileInformation(nodeRef, false, isLockedFilesAsOffline);
/**
* Special processing for root node
*/
if(path.equals(FileName.DOS_SEPERATOR_STR))
{
finfo.setFileName("");
}
// DEBUG
if ( logger.isDebugEnabled())
@@ -2995,6 +3003,11 @@ public class ContentDiskDriver2 extends AlfrescoDiskDriver implements ExtendedD
catch(IOException ne)
{
// Do nothing
if ( logger.isDebugEnabled())
{
logger.debug("Unable to delete empty file:" + path, ne);
}
}
}