Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 379198

Summary: console 'pwd' command only shows current directory name
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.5   
Target Milestone: 0.5 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Grant Gayed CLA 2012-05-11 00:11:36 EDT
The file nodes being used within the Console are often missing their "Parents" attribute, which makes computing the full named ancestory of a file/directory more difficult.  These nodes are being retrieved via FileClient.fetchChildren(), which presumably should be returning nodes with full information, not just partial.  I've logged bug 379197 for this; assuming this is in fact a bug then computing the full named path should be easy once this is fixed.

If FileClient.fetchChildren() is not expected to return nodes with "Parents" then an approach like the editor page can be used to get the full node info (shown below).  If this is needed then it probably makes sense to only do this when the info is really needed (ie.- settle for using the partially-populated node objects until one specifically is cd'd to).

var load = dojo.hitch(this, function(results) {
    var metadataOk = results[0][0], metadata = metadataOk ? results[0][1] : null;
});
new dojo.DeferredList([fileClient.read(fileURI, true)]).then(load);
Comment 1 Grant Gayed CLA 2012-05-11 16:20:38 EDT
Fixed > 20120511, patch: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=428787e0ce478a90b4ffd2b897c5a9afc3801813 .  Also made related changes to 'cd'.