unmount_media Method

Unmounts media from the virtual disk.

Syntax

def unmount_media(force_unmount: bool) -> None: ...

Remarks

This method unmounts the virtual storage media from the virtual disk. The virtual disk itself, as well as any existing mounting points, remain present.

If ForceUnmount is True, all open files are forcefully closed. If ForceUnmount is False and open files or directories are detected, this method fails with an errorraises an exception.

This method must not be called for plug-and-play virtual disks with non-removable media (see storage_type); attempting to do so will cause the call will fail with an "access denied" error.

Note: This method can only be called after creating a virtual disk, and cannot be called within events.

 
 
Copyright (c) 2020 Callback Technologies, Inc. - All rights reserved.
CBFS Disk 2020 Python Edition - Version 20.0 [Build 7650]