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:
Derek Hulley
2007-07-04 15:39:42 +00:00
parent 530d129634
commit d87f03ceb4
7 changed files with 372 additions and 284 deletions

View File

@@ -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);
}