mirror of
https://github.com/NixOS/nix
synced 2025-06-26 11:41:15 +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
|
@ -236,12 +236,6 @@ std::vector<fs::directory_entry> readDirectory(const Path & path)
|
|||
}
|
||||
|
||||
|
||||
fs::file_type getFileType(const Path & path)
|
||||
{
|
||||
return fs::symlink_status(path).type();
|
||||
}
|
||||
|
||||
|
||||
std::string readFile(const Path & path)
|
||||
{
|
||||
AutoCloseFD fd = toDescriptor(open(path.c_str(), O_RDONLY
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue