LISTFOLDER XML output now longer has status attribute

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
slewis
Posts: 1
Joined: Sat Feb 15, 2014 6:04 pm

LISTFOLDER XML output now longer has status attribute

Post by slewis » Sat Feb 15, 2014 6:17 pm

We have upgraded from 5.1.1.1 to 7.1.

We have code that is running Vault via the command line using LISTFOLDER to output a list of files in a specific folder.

The code was expecting to find a status attribute in the <File> node which no longer seems to be there:

<vault>
<folder name="$/Common">
<file name="saDatabaseUpgrader.vbg" version="1" length="98" objectid="1218" objectversionid="30261" />
<file name="SendToOOCalc.frx" version="2" length="12" objectid="212073" objectversionid="1036984" />
<file name="psiUserDefControls.vbp" version="27" length="2837" objectid="1097" objectversionid="704114" />

This is the sample bat file that we ran to create the XML file for debugging purposes:

"C:\Program Files\SourceGear\Vault Client\Vault.exe" -host "VAULT" -user "VAULTUSER" -password "" -repository "VAULT REP" LISTFOLDER "$/Common" -norecursive > FileList.txt

Any ideas why the status attribute no longer is part of the output file.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: LISTFOLDER XML output now longer has status attribute

Post by lbauer » Sun Feb 16, 2014 8:53 pm

I sent a response to your email to us.

We haven't changed LISTFOLDER. I was able to run the command and get the file status.

However if there isn't a working folder or if the status is "Blank" (up to date), no status is listed.

Does your folder have a working directory or a non-blank status in the file list?
Linda Bauer
SourceGear
Technical Support Manager

Post Reply