1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Make completeDir follow symlinks

Allows completing `nix why-depends /run/cur<Tab>` to /run/current-system
This commit is contained in:
Naïm Favier 2022-02-18 13:26:40 +01:00
parent a6d7cd4183
commit 5461ff532d
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2
3 changed files with 11 additions and 1 deletions

View file

@ -77,6 +77,7 @@ bool isInDir(std::string_view path, std::string_view dir);
bool isDirOrInDir(std::string_view path, std::string_view dir);
/* Get status of `path'. */
struct stat stat(const Path & path);
struct stat lstat(const Path & path);
/* Return true iff the given path exists. */