diff --git a/repertory/repertory/src/ui/handlers.cpp b/repertory/repertory/src/ui/handlers.cpp index 5767a492..af8ff3ea 100644 --- a/repertory/repertory/src/ui/handlers.cpp +++ b/repertory/repertory/src/ui/handlers.cpp @@ -342,6 +342,7 @@ void handlers::generate_config(provider_type prov, std::string_view name, } if (data_dir.has_value()) { + utils::file::directory{data_dir.value()}.create_directory(); launch_process(prov, name, {"-dd", data_dir.value(), "-gc"}); } else { launch_process(prov, name, {"-gc"}); diff --git a/web/repertory/lib/models/mount.dart b/web/repertory/lib/models/mount.dart index f4b852ca..2185ce30 100644 --- a/web/repertory/lib/models/mount.dart +++ b/web/repertory/lib/models/mount.dart @@ -286,7 +286,7 @@ class Mount with ChangeNotifier { Future test() async { try { final auth = await _auth.createAuth(); - final response = await http.put( + final response = await http.get( Uri.parse( Uri.encodeFull( '${getBaseUri()}/api/v1/test?auth=$auth&name=$name&type=$type&config=${jsonEncode(mountConfig.settings)}',