mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Another attempt at Linux fix for filesystem differences between Linux and Windows
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2187 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -300,12 +300,15 @@ public class FileContentStore extends AbstractContentStore
|
||||
{
|
||||
// ignore files that don't exist
|
||||
File file = makeFile(contentUrl);
|
||||
boolean deleted = false;
|
||||
if (!file.exists())
|
||||
{
|
||||
return true;
|
||||
deleted = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
deleted = file.delete();
|
||||
}
|
||||
// attempt to delete the file directly
|
||||
boolean deleted = file.delete();
|
||||
|
||||
// done
|
||||
if (logger.isDebugEnabled())
|
||||
|
Reference in New Issue
Block a user