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:
parent
52ccaf7971
commit
ddea4c6deb
6 changed files with 6 additions and 13 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue