# Fault - CannotCreateFile(vim.fault.CannotCreateFile)

Thrown by
  CreateDirectory, MakeDirectory, VsanPerfCreateStatsObject, VsanPerfDeleteStatsObject
Extends
  FileFault
Since
  VI API 2.5

## Fault Description

A CannotCreateFile exception is thrown if a file create operation fails.

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:vsan="urn:vsan" name="CannotCreateFile"> <complexContent> <extension base="vsan:FileFault"> <sequence> </sequence> </extension> </complexContent> </complexType>