---
title: readOnlyFileSystem
framework: system
role: symbol
role_heading: Type Property
path: system/errno/readonlyfilesystem
---

# readOnlyFileSystem

Read-only file system.

## Declaration

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

## Mentioned in

Adopting Swift Error Constants

## Discussion

Discussion You attempted to modify a file or directory on a file system that was read-only at the time. The corresponding C error is EROFS.

## See Also

### File System Errors

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