I want touch this way

This commit is contained in:
Tobias P.L Wennberg 2025-01-12 19:21:15 +01:00
parent 84b969a98c
commit bd13a0ebe9

View File

@ -9,7 +9,7 @@ import (
) )
func Touch(in input_parser.Input, env *environment.Env) { func Touch(in input_parser.Input, env *environment.Env) {
file_path := filepath.Join(env.Path, in.Args[0]) file_path := filepath.Join(env.Path, in.Args_raw)
_, err := os.Stat(file_path) _, err := os.Stat(file_path)
if !os.IsNotExist(err) { if !os.IsNotExist(err) {
fmt.Print(fmt.Sprintf("File alredy exist!")) fmt.Print(fmt.Sprintf("File alredy exist!"))