1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

rm isLink

isLink util is removed in favour of std::filesystem::is_symlink
This commit is contained in:
siddhantCodes 2024-05-08 19:59:37 +05:30
parent 52ccaf7971
commit ddea4c6deb
6 changed files with 6 additions and 13 deletions

View file

@ -54,7 +54,7 @@ Path Store::followLinksToStore(std::string_view _path) const
{
Path path = absPath(std::string(_path));
while (!isInStore(path)) {
if (!isLink(path)) break;
if (!std::filesystem::is_symlink(path)) break;
auto target = readLink(path);
path = absPath(target, dirOf(path));
}