# Fault - FileLocked(vim.fault.FileLocked)

Thrown by
  CopyDatastoreFile_Task, DeleteDatastoreFile_Task, MoveDatastoreFile_Task
Extends
  FileFault
Since
  2.0

## Fault Description

Thrown if an attempt is made to lock a file that is already in use.

Properties

Name | Type | Description
--- | --- | ---
None
Properties inherited from FileFault
file
Properties inherited from VimFault
None
Properties inherited from MethodFault
faultCause, faultMessage

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vslm="urn:vslm" name="FileLocked"> <complexContent> <extension base="vslm:FileFault"> <sequence> </sequence> </extension> </complexContent> </complexType>