mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-26 13:42:49 +02:00
invoicesrpc: add SubscribeSingleInvoice rpc
This commit is contained in:
15
lnrpc/file_utils.go
Normal file
15
lnrpc/file_utils.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package lnrpc
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// FileExists reports whether the named file or directory exists.
|
||||
func FileExists(name string) bool {
|
||||
if _, err := os.Stat(name); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user