mirror of
https://codeberg.org/scip/swayipc.git
synced 2025-12-16 12:10:57 +01:00
14 lines
161 B
Go
14 lines
161 B
Go
|
|
package i3ipc
|
||
|
|
|
||
|
|
import "os"
|
||
|
|
|
||
|
|
func fileExists(filename string) bool {
|
||
|
|
info, err := os.Stat(filename)
|
||
|
|
|
||
|
|
if err != nil {
|
||
|
|
return false
|
||
|
|
}
|
||
|
|
|
||
|
|
return !info.IsDir()
|
||
|
|
}
|