Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List empty directories in a datastore #721

Open
zdxerr opened this issue May 3, 2023 · 0 comments
Open

List empty directories in a datastore #721

zdxerr opened this issue May 3, 2023 · 0 comments
Labels

Comments

@zdxerr
Copy link

zdxerr commented May 3, 2023

Describe the bug

I tried to list all all empty directories on a datastore but was not successful with

search_spec = vim.host.DatastoreBrowser.SearchSpec(query=[vim.host.DatastoreBrowser.FolderQuery()])
datastore.browser.SearchDatastoreSubFolders_Task(f"[{datastore.summary.name}]", search_spec)

Only directories like scratch are listed. What can I do about this?

Reproduction steps

...

Expected behavior

List all directories including empty ones, and ones containing vm specific files.

Additional context

No response

@zdxerr zdxerr added the bug label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant