Is there any way to make GetItems NOT to return itself as a child?  
Author Message
xavito





PostPosted: Team Foundation Server - Version Control, Is there any way to make GetItems NOT to return itself as a child? Top

Hi, when I do a GetItems it returns the list of child Items for a particular path in TFS. However, it returns also itself. Is there a way for this NOT to happen

Thanks



Visual Studio Team System17  
 
 
Richard Berg MSFT





PostPosted: Team Foundation Server - Version Control, Is there any way to make GetItems NOT to return itself as a child? Top

Pass "folder\*" instead of "folder".
 
 
xavito





PostPosted: Team Foundation Server - Version Control, Is there any way to make GetItems NOT to return itself as a child? Top

Thank you very much.
 
 
xavito





PostPosted: Team Foundation Server - Version Control, Is there any way to make GetItems NOT to return itself as a child? Top

Before I ask too much, is there any documentation where I can find tips like this one
 
 
Richard Berg MSFT





PostPosted: Team Foundation Server - Version Control, Is there any way to make GetItems NOT to return itself as a child? Top

Little tips like this one are unlikely to appear in the official docs. I'll tell you how I found it: I ran tf dir foo\* from a tf.exe window that had logging enabled, then looked at the SOAP call. The wildcard was passed directly to the server, so I knew it would work for the API too.
 
 
xavito





PostPosted: Team Foundation Server - Version Control, Is there any way to make GetItems NOT to return itself as a child? Top

Wow, nice one. :)

Thanks for your help. Right now I'm a bit stuck with TFS and your help is greatly appreciated.