Search in sources :

Example 1 with FileNotFoundFaultMsg

use of com.vmware.vim25.FileNotFoundFaultMsg in project photon-model by vmware.

the class ClientUtils method deleteFolder.

/**
 * Delete a directory at the specified path.
 */
public static void deleteFolder(Connection connection, ManagedObjectReference datacenterMoRef, String path) throws FileFaultFaultMsg, InvalidDatastoreFaultMsg, RuntimeFaultFaultMsg, FileNotFoundFaultMsg, InvalidDatastorePathFaultMsg {
    ManagedObjectReference fileManager = connection.getServiceContent().getFileManager();
    connection.getVimPort().deleteDatastoreFileTask(fileManager, path, datacenterMoRef);
}
Also used : ManagedObjectReference(com.vmware.vim25.ManagedObjectReference)

Aggregations

ManagedObjectReference (com.vmware.vim25.ManagedObjectReference)1