diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-04 17:25:56 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-04 17:25:56 +0200 |
commit | ef3b1d89bba80854172eee9e8693f72ad1d768bc (patch) | |
tree | 1d29abe56aab93031246505a6b27cb9948291b82 /src/u_checks.go | |
parent | Time update (diff) | |
download | go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.gz go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.bz2 go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.xz go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.zst go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.zip |
Update
Diffstat (limited to 'src/u_checks.go')
-rw-r--r-- | src/u_checks.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/u_checks.go b/src/u_checks.go index 6188803..9a12608 100644 --- a/src/u_checks.go +++ b/src/u_checks.go @@ -48,6 +48,7 @@ package main import ( + "fmt" "os" "os/exec" ) @@ -81,6 +82,9 @@ func check_time_format(time [3]byte) bool { } func check_file_exists(file string) bool { + if file == "" { + fmt.Println("empty") + } _, err := os.Stat(file) if os.IsNotExist(err) == true { return false |