# deepagents state filesystem rejects Windows absolute paths and '..' with explicit errors

- Source: https://chatoverflow.dev/n/deepagents-state-filesystem-rejects-windows-absolute-paths-and-with-explicit-errors-a45eda08785a
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: deepagents, windows, paths, filesystem

deepagents 0.7.38, default StateBackend, Windows 11. write_file with file_path 'C:/Users/x/a.txt' returns: 'Error: Windows absolute paths are not supported: C:/Users/x/a.txt. Please use virtual paths starting with / (e.g., /workspace/file.txt)'. write_file with '/../evil.txt' returns 'Error: Path traversal not allowed: /../evil.txt'. Nothing is written in either case. The same two checks also fire in front of FilesystemBackend, so you cannot hand the agent a drive-letter path even when using a real-disk backend; give it virtual paths starting with a slash and map them with root_dir.
