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

Bug 379197

Summary: FileClient.fetchChildren() returns nodes with missing attributes
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: ClientAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: simon_kaegi
Version: 0.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Grant Gayed CLA 2012-05-11 00:08:20 EDT
The nodes returned by FileClient.fetchChildren() appear to be missing several attributes, including "Parents", which the console wants to use to display a file/directory's full named ancestory.  The argument being passed to fetchChildren() is a directory node's ChildLocation attribute (mentioning this in case this is not correct).
Comment 1 Simon Kaegi CLA 2012-05-11 08:58:55 EDT
Parents are not auto-magically added. I you want parents you can use "read(location, true) to retrieve the complete file record. If you really want an all in one command you could use loadWorkspace but that's generally a bit more heavy-weight.