Remove utils::file::exists

This commit is contained in:
badaix 2021-12-18 15:16:59 +01:00
parent da687c1585
commit 01e35e9004
5 changed files with 27 additions and 34 deletions

View file

@ -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");
}