mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-01 23:59:43 +02:00
Use utils::file::exists instead of std::filesystem
This commit is contained in:
parent
98ccc8eded
commit
3f208d260e
5 changed files with 29 additions and 23 deletions
|
@ -23,10 +23,10 @@
|
|||
#include "common/aixlog.hpp"
|
||||
#include "common/snap_exception.hpp"
|
||||
#include "common/utils.hpp"
|
||||
#include "common/utils/file_utils.hpp"
|
||||
#include "common/utils/string_utils.hpp"
|
||||
|
||||
// standard headers
|
||||
#include <filesystem>
|
||||
#include <regex>
|
||||
|
||||
|
||||
|
@ -90,10 +90,10 @@ void LibrespotStream::initExeAndPath(const std::string& filename)
|
|||
{
|
||||
path_ = "";
|
||||
exe_ = findExe(filename);
|
||||
if (!std::filesystem::exists(exe_) || (exe_ == "/"))
|
||||
if (!utils::file::exists(exe_) || (exe_ == "/"))
|
||||
{
|
||||
exe_ = findExe("librespot");
|
||||
if (!std::filesystem::exists(exe_))
|
||||
if (!utils::file::exists(exe_))
|
||||
throw SnapException("librespot not found");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue