Add Files Question

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

Moderator: SourceGear

Post Reply
DanBlake
Posts: 4
Joined: Wed Jun 02, 2004 8:59 pm

Add Files Question

Post by DanBlake » Wed Jun 02, 2004 9:11 pm

We just started evaluating Valut for use on a large new project. Everything looks great so far.

I do have one thing I'm a little confused about.

If I have a working directory for $/ set to C:\WorkingSource and I right click on the $/ node in the client and select Add Files and then highlight C:\WorkingSource and press the add button, it adds the new files to $/WorkingSource. How do I get it to just recurively add any new files and directories to $/ like I want it to?

Thanks,
Dan

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

Post by jclausius » Wed Jun 02, 2004 9:25 pm

Dan:

1) Highlight the folder you wish to be the "root" for the add. In you example, you were using $/
2) Invoke the "Add Files" dialog on that folder.
3) Within the Add Files/Folders, you can do add recursively by adding the parent folder for all objects. Select the parent folder in question on the left hand side of the dialog, and then click the "Add" button. In the bottom pane, you should now see a summary of the parent folder, as well as, sub folders and all the file entries, size, etc.

HTH
Jeff Clausius
SourceGear

DanBlake
Posts: 4
Joined: Wed Jun 02, 2004 8:59 pm

Post by DanBlake » Wed Jun 02, 2004 9:34 pm

That is I think what I did, but it added it to $/WorkingSource not $/.

As an example I have a folder called C:\WorkingSource\Images.

So instead of getting the new files added to $/Images, the get added to $/WorkingSource/Images (even though the working director for $/ is set to C:\WorkingSource, and all of the folders under $/ are inheriting from it).

What am I missing/

Thanks,
Dan

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

Post by jclausius » Thu Jun 03, 2004 6:48 am

When adding files, the current working folder doesn't have too much bearing on the equation, except it will set the default folder in the Add Files / Folders dialog.

Try this:

1) Highlight the "owner folder". In your case, you wanted to create Images/ under $/. So highlight $/ in the tree view of the Vault client.
2) Invoke Add Files... with $/ still highlighted.
3) On the Add Files / Folders dialog, Highlight the C:\WorkingSource\Images\ on the left.
4) Click the Add Button. - Take note below. In the summary part, it should state $/Images/ will be created.
5) Click OK.
6) So now the Folder Images/ should be created under the parent folder $/.
Jeff Clausius
SourceGear

DanBlake
Posts: 4
Joined: Wed Jun 02, 2004 8:59 pm

Post by DanBlake » Thu Jun 03, 2004 8:14 pm

My example was off a little in that I actually have another directory (Core Libs) before the image directory.

When I try to Add Files from C:\WorkingSource\CoreLibs\Image to $/CoreLibs/Image I get the following error.

[6/3/2004 9:09:43 PM] Item $/Core Libs/Image caused the transaction to fail: An item with the same name or object id already exists in the selected folder.
[6/3/2004 9:09:43 PM] Transaction failed

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

Post by jclausius » Thu Jun 03, 2004 8:36 pm

You cannot commit a recursive add if it will result in a name conflict with an existing item.

This is a guess, but in your case are you trying to add a directory images to $/CoreLibs/? If so, you will need to delete or rename the current $/CoreLibs/Images/ directory, as the add of Images/ is causing a name conflict.
Jeff Clausius
SourceGear

DanBlake
Posts: 4
Joined: Wed Jun 02, 2004 8:59 pm

Post by DanBlake » Fri Jun 04, 2004 8:15 pm

Thanks for the explanantion, but not having this is a real pain. I want to be able to point at the root of a source tree on disk and have it add any new files and directories. This is something we do in Source Safe. Our directory strucutre is very fluid, and it is a pain to go through 50 directories to figure out what directories have been added, so that you remember to add them in the right way.

Is this something you are going to change in the future?

Dan

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

Post by jclausius » Fri Jun 04, 2004 8:46 pm

I see. I didn't know the directory structure was already in place, and you wanted to add *only* the files that do not already exist in Vault.

I believe this enhancement has been suggested before. I'll add your name to the list.
Jeff Clausius
SourceGear

Post Reply