Skip to content

Commit

Permalink
Allow chunks subdirectories in the disk storage to be symlinks.
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertchen committed Sep 29, 2020
1 parent 836a785 commit 7e372ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/duplicacy_filestorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ func (storage *FileStorage) UploadFile(threadIndex int, filePath string, content
return err
}
} else {
if !stat.IsDir() {
return fmt.Errorf("The path %s is not a directory", dir)
if !stat.IsDir() && stat.Mode() & os.ModeSymlink == 0 {
return fmt.Errorf("The path %s is not a directory or symlink", dir)
}
}
}
Expand Down

1 comment on commit 7e372ed

@gilbertchen
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Duplicacy Forum. There might be relevant details there:

https://forum.duplicacy.com/t/enable-use-of-junctions-or-symlinks-to-split-chunks-across-multiple-drives/4259/3

Please sign in to comment.