aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/serve_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zen/cmds/serve_cmd.cpp')
-rw-r--r--src/zen/cmds/serve_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zen/cmds/serve_cmd.cpp b/src/zen/cmds/serve_cmd.cpp
index f87725e36..64039e4c9 100644
--- a/src/zen/cmds/serve_cmd.cpp
+++ b/src/zen/cmds/serve_cmd.cpp
@@ -67,7 +67,7 @@ ServeCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
throw zen::OptionParseException("command requires a root path");
}
- if (!std::filesystem::exists(m_RootPath) || !std::filesystem::is_directory(m_RootPath))
+ if (!IsDir(m_RootPath))
{
throw zen::OptionParseException(fmt::format("path must exist and must be a directory: '{}'", m_RootPath));
}