mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
parent
b2acf4ab97
commit
d944cb7f58
7 changed files with 11 additions and 11 deletions
|
|
@ -29,12 +29,7 @@ namespace fs = std::filesystem;
|
|||
|
||||
namespace nix {
|
||||
|
||||
/**
|
||||
* Treat the string as possibly an absolute path, by inspecting the
|
||||
* start of it. Return whether it was probably intended to be
|
||||
* absolute.
|
||||
*/
|
||||
static bool isAbsolute(PathView path)
|
||||
bool isAbsolute(PathView path)
|
||||
{
|
||||
return fs::path { path }.is_absolute();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue