Browse Source

Handle broken symlinks, Simple versioner (fixes #1071)

Jakob Borg 11 years ago
parent
commit
d38c81fcff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      internal/versioner/simple.go

+ 1 - 1
internal/versioner/simple.go

@@ -55,7 +55,7 @@ func NewSimple(folderID, folderPath string, params map[string]string) Versioner
 // Move away the named file to a version archive. If this function returns
 // nil, the named file does not exist any more (has been archived).
 func (v Simple) Archive(filePath string) error {
-	fileInfo, err := os.Stat(filePath)
+	fileInfo, err := os.Lstat(filePath)
 	if err != nil {
 		if os.IsNotExist(err) {
 			if debug {