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

How to list all file in specific folder in datastore and download it? #722

Open
SarindraTherese opened this issue May 8, 2023 · 0 comments
Labels

Comments

@SarindraTherese
Copy link

Describe the bug

I want to recover the screenshots of a specified vm then delete them or group them in another directory in the vcenter browser via pyvmomi.

Reproduction steps

the step i've tried:
Step 1- Download from Datastore https://github.com/vmware/pyvmomi/issues/814
this not work for me
the error:

  File "C:\Users\Desktop\myproj\venv\Lib\site-packages\requests\adapters.py", line 523, in send
    for i in request.body:
  io.UnsupportedOperation: read

Step 2- How to list all folder in every datastore https://github.com/vmware/pyvmomi-community-samples/issues/343
This work, but now i want access the folder
But I don't have any tips to do this

Expected behavior

This is my list of folder in datastore

  • [VM]/VM-Screenshot
  • [VM]/VM-Template

I want to download all image in [VM]/VM-Screenshot like VM-Screenshot-1.png, VM-Screenshot-2.png, ...
After create a new folder [VM]/VM-Screenshot entitled Downloaded where I will then move the images that I have already uploaded.

Additional context

No response

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