: Open the temp.vmdk and change the reference from temp-flat.vmdk to your original [VMNAME]-flat.vmdk .

(create new VMX or attach disk to existing VM).

if tool.open_device() and tool.parse_vmfs_header(): files = tool.scan_for_deleted_vmdks()