From baab1fb89a3d41ba2fe36e6c68fe4a785788513a Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 11 Apr 2024 20:20:20 +0200 Subject: qwe --- src/i_insert.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/i_insert.go') diff --git a/src/i_insert.go b/src/i_insert.go index c425a11..f919049 100644 --- a/src/i_insert.go +++ b/src/i_insert.go @@ -53,6 +53,7 @@ package main import ( "errors" + "fmt" "os" "regexp" "strconv" @@ -85,7 +86,25 @@ func i_insert_format_filename(name, path string) string { return str } +func i_insert_abs_files(insert *HostNode) { + files := [3]*string{ + &insert.Priv, + &insert.Jump.Priv, + &insert.RDPFile, + } + + for _, v := range files { + if len(*v) > 0 { + tmp := *v + } + } +} + func i_insert_host(data *HardData, insert *HostNode) { + i_insert_abs_files(insert) + data.ui.s.Fini() + fmt.Println(insert.RDPFile) + os.Exit(1) filename := i_insert_format_filename(insert.Name, data.data_dir + insert.parent.path()) insert.filename = filename -- cgit v1.2.3