---
title: fileNameTooLong
framework: system
role: symbol
role_heading: Type Property
path: system/errno/filenametoolong
---

# fileNameTooLong

The file name is too long.

## Declaration

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

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion A component of a pathname exceeded 255 (MAXNAMELEN) characters, or an entire pathname exceeded 1023 (MAXPATHLEN-1) characters. The corresponding C error is ENAMETOOLONG.

## See Also

### Path Errors

- [tooManyRemoteLevels](system/errno/toomanyremotelevels.md)
- [tooManySymbolicLinkLevels](system/errno/toomanysymboliclinklevels.md)
