---
title: fileExists
framework: system
role: symbol
role_heading: Type Property
path: system/errno/fileexists
---

# fileExists

File exists.

## Declaration

```swift
static var fileExists: Errno { get }
```

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion An existing file was mentioned in an inappropriate context; for example, as the new link name in a link function. The corresponding C error is EEXIST.

## See Also

### File and Directory Errors

- [attributeNotFound](system/errno/attributenotfound.md)
- [badFileDescriptor](system/errno/badfiledescriptor.md)
- [fileTooLarge](system/errno/filetoolarge.md)
- [improperLink](system/errno/improperlink.md)
- [isDirectory](system/errno/isdirectory.md)
- [noLocks](system/errno/nolocks.md)
- [noSuchFileOrDirectory](system/errno/nosuchfileordirectory.md)
- [notDirectory](system/errno/notdirectory.md)
- [permissionDenied](system/errno/permissiondenied.md)
- [textFileBusy](system/errno/textfilebusy.md)
