It's all about the answers!

Ask a question

Share command Exception(--Ancestor is shared)

nanda S (201519) | asked May 16 '14, 5:50 a.m.
edited May 16 '14, 5:53 a.m.

I am trying to add files from my local drive to the ALM workspace's component using the SCM CLI share command but an exception is thrown as --ancestor is shared "C:"

My Command is like this

 lscm share -r http:example -u userid -p password Workspace Component C:\MainDirector\Subdirectory

Is there a way to share the Sub-directory but not the top level (Main directory).

Example: MainFolder contains many SubFolders and i want to share the subfolders to each induvidual component by giving the path as C:\MainFolder\SubFolder

Accepted answer

permanent link
Karl Weinert (2.0k52736) | answered May 16 '14, 2:34 p.m.
That error generally means you are trying to share something from a directory that is already shared.
In your case is MainFolder already shared?
Did you happen to load the workspace into the root of C:?

If MainFolder is already shared you'll want to move 
C:\SubFolder and share it from there.
nanda S selected this answer as the correct answer

Your answer

Register or to post your answer.