---
title: directoryNotEmpty
framework: system
role: symbol
role_heading: Type Property
path: system/errno/directorynotempty
---

# directoryNotEmpty

Directory not empty.

## Declaration

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

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion A directory with entries other than . and .. was supplied to a remove(2) directory or rename(2) call. The corresponding C error is ENOTEMPTY.

## See Also

### File System Errors

- [badFileTypeOrFormat](system/errno/badfiletypeorformat.md)
- [diskQuotaExceeded](system/errno/diskquotaexceeded.md)
- [noSpace](system/errno/nospace.md)
- [readOnlyFileSystem](system/errno/readonlyfilesystem.md)
- [tooManyLinks](system/errno/toomanylinks.md)
- [tooManyOpenFilesInSystem](system/errno/toomanyopenfilesinsystem.md)
- [tooManyOpenFiles](system/errno/toomanyopenfiles.md)
