# error: open /no/such/file: no such file or directory

- **ID:** `go/os-file-not-exist`
- **Domain:** go
- **Category:** io_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The specified file or directory does not exist in the file system.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.15 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Check if the file exists before opening using os.Stat.
   ```
2. **** (85% success)
   ```
   Use os.OpenFile with os.O_CREATE to create the file if it doesn't exist.
   ```

## Dead Ends

- **** — If the parent directory doesn't exist, creation fails. (80% fail)
- **** — The file path is absolute; changing the working directory won't help. (90% fail)
