---
title: noSuchFileOrDirectory
framework: system
role: symbol
role_heading: Type Property
path: system/errno/nosuchfileordirectory
---

# noSuchFileOrDirectory

No such file or directory.

## Declaration

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

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion A component of a specified pathname didn’t exist, or the pathname was an empty string. The corresponding C error is ENOENT.

## See Also

### File and Directory Errors

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