apple/swift-nio

Provide a current user home directory API in FileSystem

Open

#3,381 opened on Sep 24, 2025

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Swift (749 forks)batch import
good first issuekind/feature

Repository metrics

Stars
 (8,453 stars)
PR merge metrics
 (Avg merge 9d 10h) (15 merged PRs in 30d)

Description

Currently NIOFileSystem offers current working directory and temp working directory as a way to get various directories. It would be great to provide an API to get the user's current working directory, equivalent to FileManager.default.homeDirectoryForCurrentUser

Contributor guide