Author: dkatayev
Date: 2010-06-14 02:52:48 -0400 (Mon, 14 Jun 2010)
New Revision: 2560
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/TreeFileIOChannel.java
Log:
EXOJCR-756 rootDir.getAbsolutePath replaced with
PrivilegedFileHelper.getAbsolutePath(rootDir)
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/TreeFileIOChannel.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/TreeFileIOChannel.java 2010-06-14
06:34:22 UTC (rev 2559)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/fs/TreeFileIOChannel.java 2010-06-14
06:52:48 UTC (rev 2560)
@@ -55,7 +55,8 @@
{
final TreeFile tfile =
- new TreeFile(rootDir.getAbsolutePath() + makeFilePath(propertyId, orderNumber),
cleaner, rootDir);
+ new TreeFile(PrivilegedFileHelper.getAbsolutePath(rootDir) +
makeFilePath(propertyId, orderNumber), cleaner,
+ rootDir);
PrivilegedFileHelper.mkdirs(tfile.getParentFile());
@@ -65,7 +66,7 @@
@Override
protected File[] getFiles(final String propertyId) throws IOException
{
- final File dir = PrivilegedFileHelper.file(rootDir.getAbsolutePath() +
buildPath(propertyId));
+ final File dir =
PrivilegedFileHelper.file(PrivilegedFileHelper.getAbsolutePath(rootDir) +
buildPath(propertyId));
String[] fileNames = PrivilegedFileHelper.list(dir);
File[] files = new File[fileNames.length];
for (int i = 0; i < fileNames.length; i++)