help wanted, getting vim.fault.CannotAccessFile
#527 aperta il 26 nov 2018
Metriche repository
- Star
- (972 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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' }