mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.0 to HEAD
5893: AR-1492 AVM and Solaris/NFS git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6164 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -42,8 +42,9 @@ public class DummyFolderPseudoFile extends PseudoFile {
|
||||
* Class constructor
|
||||
*
|
||||
* @param fname String
|
||||
* @param relPath String
|
||||
*/
|
||||
public DummyFolderPseudoFile( String fname)
|
||||
public DummyFolderPseudoFile( String fname, String relPath)
|
||||
{
|
||||
super( fname, FileAttribute.Directory + FileAttribute.ReadOnly);
|
||||
|
||||
@@ -52,6 +53,15 @@ public class DummyFolderPseudoFile extends PseudoFile {
|
||||
FileInfo fInfo = new FileInfo( fname, 0L, FileAttribute.Directory + FileAttribute.ReadOnly);
|
||||
fInfo.setCreationDateTime( System.currentTimeMillis());
|
||||
|
||||
fInfo.setPath( relPath);
|
||||
fInfo.setFileId( relPath.hashCode());
|
||||
|
||||
long timeNow = System.currentTimeMillis();
|
||||
fInfo.setCreationDateTime( timeNow);
|
||||
fInfo.setModifyDateTime( timeNow);
|
||||
fInfo.setAccessDateTime( timeNow);
|
||||
fInfo.setChangeDateTime( timeNow);
|
||||
|
||||
setFileInfo( fInfo);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user