From 6a252ed015b1ff25f41453187295e4079b4a6f6e Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 22 Nov 2021 15:03:05 +0200 Subject: [PATCH] os: implement a JS version of os.join_path_single too --- vlib/os/os.js.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vlib/os/os.js.v b/vlib/os/os.js.v index c9e130d254..e9ae812f01 100644 --- a/vlib/os/os.js.v +++ b/vlib/os/os.js.v @@ -102,6 +102,11 @@ pub fn join_path(base string, dirs ...string) string { return res } +pub fn join_path_single(base string, elem string) string { + // TODO: deprecate this + return join_path(base, elem) +} + pub fn execute(cmd string) Result { mut exit_code := 0 mut stdout := ''