vmware/pyvmomi-community-samples

help wanted, getting vim.fault.CannotAccessFile

Ouverte

#527 ouverte le 26 nov. 2018

 (0 commentaire) (0 réaction) (0 personne assignée)Python (914 forks)batch import
help wanted

Métriques du dépôt

Stars
 (972 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Hi,

getting below exception while creating a directory in windows VM.

Creating directory in vm using : MakeDirectoryInGuest() from vim.vm.guest.FileManager. passing all the attributes to MakeDirectoryInGuest().

traceback : createParentDirectories=True File "C:\Python27\lib\site-packages\pyVmomi\VmomiSupport.py", line 580, in self.f(*(self.args + (obj,) + args), **kwargs) File "C:\Python27\lib\site-packages\pyVmomi\VmomiSupport.py", line 386, in _InvokeMethod return self._stub.InvokeMethod(self, info, args) File "C:\Python27\lib\site-packages\pyVmomi\SoapAdapter.py", line 1370, in InvokeMethod raise obj # pylint: disable-msg=E0702 vim.fault.CannotAccessFile: (vim.fault.CannotAccessFile) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], msg = 'Unable to access file C:\Path\to\target_dir', faultCause = , faultMessage = (vmodl.LocalizableMessage) [], file = 'C:\Path\to\target_dir' }

Guide contributeur