Compare commits
No commits in common. "0f95938d33f032a00b19f2bba6f490e66efa6207" and "b127f92566460f7eb1430b40213ab22c98ee9251" have entirely different histories.
0f95938d33
...
b127f92566
@ -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!"))
|
||||||
@ -22,3 +22,6 @@ func Touch(in input_parser.Input, env *environment.Env) {
|
|||||||
}
|
}
|
||||||
defer file.Close()
|
defer file.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user