# Data Object - DatastoreFileEvent(vim.event.DatastoreFileEvent)

Extended by
  DatastoreFileCopiedEvent, DatastoreFileDeletedEvent, DatastoreFileMovedEvent
Extends
  DatastoreEvent
Since
  vSphere API 4.0

## Data Object Description

Base class for events related to datastore file and directory operations.

Property datastore inherited from DatastoreEvent refers to the destination datastore in case there is more than datastore involved in the operation.

Properties

Name | Type | Description
--- | --- | ---
sourceOfOperation* | xsd:string | Identifier of the initiator of the file operation. Since vSphere API 6.5
succeeded* | xsd:boolean | Indicator whether the datastore file operation succeeded. Since vSphere API 6.5
targetFile | xsd:string | Datastore path of the target file or directory.
Properties inherited from DatastoreEvent
datastore
Properties inherited from Event
chainId, changeTag, computeResource, createdTime, datacenter, ds, dvs, fullFormattedMessage, host, key, net, userName, vm
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="DatastoreFileEvent"> <complexContent> <extension base="vsan:DatastoreEvent"> <sequence> <element name="targetFile" type="xsd:string"/> <element name="sourceOfOperation" type="xsd:string" minOccurs="0"/> <element name="succeeded" type="xsd:boolean" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>