[yocto] [Refactor RFC 4/8] Fix full path of OEFile

Ioana Grigoropol ioanax.grigoropol at intel.com
Tue Jun 4 08:07:44 PDT 2013


- use / instead of OS specific file separator
  - when dealing with remote files, it is not indicated to use the file separator of the host OS on the target OS, because these two can be different
- use absolutePath instead of toString method for IHostFile

Signed-off-by: Ioana Grigoropol <ioanax.grigoropol at intel.com>
---
 .../src/org/yocto/bc/ui/filesystem/OEFile.java     |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEFile.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEFile.java
index 7f85f32..9fcc301 100644
--- a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEFile.java
+++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/filesystem/OEFile.java
@@ -152,8 +152,7 @@ public class OEFile extends FileStore {
 		IFileStore[] wrapped = new IFileStore[children.length];
 		
 		for (int i = 0; i < wrapped.length; i++) {
-			String fullPath = file.toString() +File.separatorChar + children[i];
-			
+			String fullPath = file.getAbsolutePath() + "/" + children[i];
 			updateIgnorePaths(fullPath, ignoredPaths, monitor);
 			if (ignoredPaths.contains(fullPath)) {
 				wrapped[i] = getDeadChild(children[i]);
-- 
1.7.9.5




More information about the yocto mailing list