copy langext & termext from ffsclient

This commit is contained in:
2022-10-27 16:48:26 +02:00
parent 0eaeb5ac4f
commit 3717eeb515
17 changed files with 606 additions and 7 deletions

11
langext/os.go Normal file
View File

@@ -0,0 +1,11 @@
package langext
import "os"
func FileExists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
return false
}
return !info.IsDir()
}