1
0
mirror of https://github.com/ssh-vault/ssh-vault.git synced 2025-07-29 18:01:12 +03:00
This commit is contained in:
nbari
2016-10-18 20:30:20 +02:00
parent f4c2a4fb6d
commit 82235b870f

View File

@ -47,6 +47,7 @@ func (c *cache) Get(u string, k int) (string, error) {
return uKey, nil
}
// IsFile check if string is a file
func (c *cache) IsFile(path string) bool {
f, err := os.Stat(path)
if err != nil {