apple/swift-nio

Provide a current user home directory API in FileSystem

Open

#3,381 opened on Sep 24, 2025

View on GitHub
 (5 comments) (0 reactions) (0 assignees)Swift (8,453 stars) (749 forks)batch import
good first issuekind/feature

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