15 lines
193 B
Go
15 lines
193 B
Go
|
package files
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"os"
|
||
|
)
|
||
|
|
||
|
func IsFileExists(fileLocation string) bool {
|
||
|
if _, err := os.Stat(fileLocation); errors.Is(err, os.ErrNotExist) {
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
return true
|
||
|
}
|