It's all about the answers!

Ask a question

How do I find the component corresponding to file/folder in a sandbox


Mike Blake-Knox (835) | asked May 19 '15, 4:29 p.m.

I'm trying to find which component is loaded in a sandbox. How can I obtain the component name for a specific file/folder in a sandbox?

For instance, if component appComponent is loaded in the sandbox at appSandbox/app, how can I find which component is associated with appSandbox/app? This would be easy if a Base Folder was always created when the component was loaded but unfortunately I can't make that assumption.

Thanks

Mike

Accepted answer


permanent link
Lily Wang (4.9k714) | answered May 19 '15, 8:22 p.m.
One way I can think out is using "scm status" command line.

You can run commands below:
> cd appSandbox/app
> scm --show-uuid yes status --no-local-refresh 

The command will list the component of the current directory and its uuid.
Mike Blake-Knox selected this answer as the correct answer

Comments
Mike Blake-Knox commented Jun 04 '15, 5:41 p.m.

Subsequently, I've found that the scm status subcommand has been deprecated in favor of the the show status subcommand. The show status subcommand doesn't appear to be sensitive to the working directory and doesn't allow "appSandbox/app" to be specified explicitly as the value of the -d argument. The error says the directory "appSandbox/app" cannot be used as a shared root as it has a shared ancestor (appSandbox).


Lily Wang commented Jun 04 '15, 10:42 p.m.

 I don't have issue to use "scm show status" as below:

> cd appSandbox/app
> scm --show-uuid yes show status --no-local-refresh 

What's the output you got?

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.