mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-20 01:56:47 +02:00
1d6c2316a9
For long expressions, one argument or parameter per line is just easier.
17 lines
332 B
C++
17 lines
332 B
C++
#include "file-system.hh"
|
|
|
|
namespace nix {
|
|
|
|
Descriptor openDirectory(const std::filesystem::path & path)
|
|
{
|
|
return CreateFileW(
|
|
path.c_str(),
|
|
GENERIC_READ,
|
|
FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
|
|
NULL,
|
|
OPEN_EXISTING,
|
|
FILE_FLAG_BACKUP_SEMANTICS,
|
|
NULL);
|
|
}
|
|
|
|
}
|