mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
Use isAbsolute()
This commit is contained in:
parent
ff8e2fe84e
commit
ff9d886f3c
7 changed files with 12 additions and 12 deletions
|
|
@ -31,12 +31,7 @@ namespace nix {
|
|||
|
||||
namespace fs { using namespace std::filesystem; }
|
||||
|
||||
/**
|
||||
* 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