2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2014-01-29 18:05:33 +01:00
|
|
|
|
|
|
|
#ifndef MPD_DB_URI_HXX
|
|
|
|
#define MPD_DB_URI_HXX
|
|
|
|
|
2020-04-03 17:03:35 +02:00
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
static inline bool
|
|
|
|
isRootDirectory(std::string_view name) noexcept
|
|
|
|
{
|
|
|
|
return name.empty() || (name.size() == 1 && name.front() == '/');
|
|
|
|
}
|
|
|
|
|
2014-01-29 18:05:33 +01:00
|
|
|
#endif
|