Closed juliantaylor closed 4 years ago
this should do it:
--- a/helper.go
+++ b/helper.go
@@ -84,7 +84,7 @@ func Fatalf(s string) {
// fileExists checks if the given file exists and returns a bool
func fileExists(file string) bool {
//Debugf("checking for file existence " + file)
- if _, err := os.Stat(file); os.IsNotExist(err) {
+ if _, err := os.Lstat(file); os.IsNotExist(err) {
return false
}
return true
The great war of the g10k 0.8.x rewrite and symlinks continues...
Thanks for catching that.
though depending on your other code it may be safer to add a new function that explicitly only tests existance and rename the fileExists to fileReadable?
thanks it works now
the sync fails if you have an an environment that has symlink pointing to a not existing file it fails with:
g10k 0.8.3