mirror of
https://github.com/xzeldon/whisper-api-server.git
synced 2024-12-28 03:45:46 +00:00
14 lines
184 B
Go
14 lines
184 B
Go
|
package resources
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
func IsFileExists(filename string) bool {
|
||
|
_, err := os.Stat(filename)
|
||
|
if err != nil {
|
||
|
if os.IsNotExist(err) {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
return true
|
||
|
}
|