diff --git a/repertory/repertory/src/ui/handlers.cpp b/repertory/repertory/src/ui/handlers.cpp index e80c6906..61956425 100644 --- a/repertory/repertory/src/ui/handlers.cpp +++ b/repertory/repertory/src/ui/handlers.cpp @@ -363,7 +363,11 @@ void handlers::handle_post_mount(auto &&req, auto &&res) const { if (unmount) { launch_process(prov, name, "-unmount"); } else { +#if defined(_WIN32) + if (utils::file::directory{location}.exists()) { +#else // !defined(_WIN32) if (not utils::file::directory{location}.exists()) { +#endif // defined(_WIN32) res.status = http_error_codes::internal_error; return; } diff --git a/web/repertory/.cspell/words.txt b/web/repertory/.cspell/words.txt index 39b55694..deb8473d 100644 --- a/web/repertory/.cspell/words.txt +++ b/web/repertory/.cspell/words.txt @@ -1,4 +1,5 @@ autofocus +canvaskit cupertino cupertinoicons fromargb diff --git a/web/repertory/lib/widgets/mount_widget.dart b/web/repertory/lib/widgets/mount_widget.dart index f7a1871b..e5ec1b74 100644 --- a/web/repertory/lib/widgets/mount_widget.dart +++ b/web/repertory/lib/widgets/mount_widget.dart @@ -110,7 +110,7 @@ class _MountWidgetState extends State { return cleanup(); } - displayErrorMessage(context, "Mount location not found"); + displayErrorMessage(context, "Mount location is not available"); return cleanup(); } : null; diff --git a/web/repertory/web/index.html b/web/repertory/web/index.html index 4b76ab6f..ae368309 100644 --- a/web/repertory/web/index.html +++ b/web/repertory/web/index.html @@ -33,6 +33,11 @@ +