mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Attempted workaround for Linux File.lastModifiedTime() issue
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2162 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -134,6 +134,8 @@ public class FileContentWriter extends AbstractContentWriter implements RandomAc
|
|||||||
// create the channel
|
// create the channel
|
||||||
RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); // will create it
|
RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rw"); // will create it
|
||||||
FileChannel channel = randomAccessFile.getChannel();
|
FileChannel channel = randomAccessFile.getChannel();
|
||||||
|
// due to Linux dodgey behaviour, we have to set the modified date of the file ourselves
|
||||||
|
file.setLastModified(System.currentTimeMillis());
|
||||||
// done
|
// done
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user