Adjust FileExists to differentiate between error and actual file existence

This commit is contained in:
Oliver Sauder
2017-11-21 11:15:51 +01:00
parent e504fdcd54
commit b2bf4f7884
8 changed files with 49 additions and 22 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ type PublishedStorage interface {
// HardLink creates a hardlink of a file
HardLink(src string, dst string) error
// FileExists returns true if path exists
FileExists(path string) bool
FileExists(path string) (bool, error)
// ReadLink returns the symbolic link pointed to by path
ReadLink(path string) (string, error)
}