Jump to content

How to: List all directories in a partial repository


dwicks

Recommended Posts

I am managing a large amount of binary data in a partial-mode repository. Gluon is able to list all the top-level directories when I enter the "configure" mode, but I can find a CLI command that lets me enumerate the top-level directories in partial mode. If I had a full checkout, I could simply run `Get-ChildItem . -Name`. But since I am in partial mode, I don't actually have any content in my directory yet.

How can I use the Plastic CLI to get a list of all directories that are valid options for passing to `cm partial configure +/DIrectoryName`? Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

 

Hi @dwicks

As your local directory does not have information for the paths. You can try to get the information from the cloud.

cm ls / --tree=3@yourRepo@yourOrg@cloud --format={path} -R

The command above will print path of the file in a specific changeset(3 in the example).  -R is for recursive. For the more information, please execute the command below.

cm ls --help

Please let us know if you have any questions.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...