mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
inline usage of nix::getFileType
and remove it
This commit is contained in:
parent
4537663740
commit
d3b7367c80
3 changed files with 1 additions and 9 deletions
|
@ -225,7 +225,7 @@ void LocalStore::findRoots(const Path & path, std::filesystem::file_type type, R
|
|||
try {
|
||||
|
||||
if (type == std::filesystem::file_type::unknown)
|
||||
type = getFileType(path);
|
||||
type = std::filesystem::symlink_status(path).type();
|
||||
|
||||
if (type == std::filesystem::file_type::directory) {
|
||||
for (auto & i : readDirectory(path))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue