use of com.vmware.vim25.InvalidDatastorePathFaultMsg 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);
}
Aggregations