I want touch this way
This commit is contained in:
parent
84b969a98c
commit
bd13a0ebe9
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
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)
|
||||
if !os.IsNotExist(err) {
|
||||
fmt.Print(fmt.Sprintf("File alredy exist!"))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user