mirror of
https://github.com/NixOS/nix
synced 2025-07-04 03:01:47 +02:00
Fixes #10558 Co-Authored-By: Eugene Butler <eugene@eugene4.com> Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
10 lines
167 B
C++
10 lines
167 B
C++
#include "file-system.hh"
|
|
|
|
namespace nix {
|
|
|
|
Descriptor openDirectory(const std::filesystem::path & path)
|
|
{
|
|
return open(path.c_str(), O_RDONLY | O_DIRECTORY);
|
|
}
|
|
|
|
}
|