Vault API Question

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
Balthazor
Posts: 81
Joined: Fri Mar 11, 2005 4:10 pm
Location: Hartford, Wisconsin

Vault API Question

Post by Balthazor » Mon Oct 09, 2006 3:46 pm

How do I tell if a VaultDeletedObject is a file or a folder? I believe it has something to do with the Properties value of the VaultDeletedObject, but I'm not sure what the deal is with that. Most objects seem to have a Properties value of 1 or 2, which seems to correspond pretty well to folder and file respectively. But occasionally I'll see something like a 5 or 6 value in there, and I have no idea what those values mean.

jclausius
Posts: 3702
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Oct 10, 2006 8:29 am

The property is a bitmap which you can AND with the VaultFSObjectDefine.TypeFolder or VaultFSObjectDefine.TypeFile flag to determine if it is a file or folder.
Jeff Clausius
SourceGear

Balthazor
Posts: 81
Joined: Fri Mar 11, 2005 4:10 pm
Location: Hartford, Wisconsin

Post by Balthazor » Tue Oct 10, 2006 11:54 am

Yep, that did the trick. Thanks!

Locked