mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +02:00
Remove utils::file::exists
This commit is contained in:
parent
da687c1585
commit
01e35e9004
5 changed files with 27 additions and 34 deletions
|
@ -26,6 +26,7 @@
|
|||
#include "common/utils/string_utils.hpp"
|
||||
|
||||
// standard headers
|
||||
#include <filesystem>
|
||||
#include <regex>
|
||||
|
||||
|
||||
|
@ -89,10 +90,10 @@ void LibrespotStream::initExeAndPath(const std::string& filename)
|
|||
{
|
||||
path_ = "";
|
||||
exe_ = findExe(filename);
|
||||
if (!fileExists(exe_) || (exe_ == "/"))
|
||||
if (!std::filesystem::exists(exe_) || (exe_ == "/"))
|
||||
{
|
||||
exe_ = findExe("librespot");
|
||||
if (!fileExists(exe_))
|
||||
if (!std::filesystem::exists(exe_))
|
||||
throw SnapException("librespot not found");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue