We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ede96a3 commit 1f373eaCopy full SHA for 1f373ea
drivers/strm/hook.go
@@ -89,13 +89,7 @@ func RemoveStrm(dstPath string, d *Strm) {
89
}
90
91
func generateStrm(ctx context.Context, driver *Strm, obj model.Obj, localPath string) {
92
- if obj.IsDir() {
93
- err := utils.CreateNestedDirectory(localPath)
94
- if err != nil {
95
- log.Warnf("failed to generate strm dir %s: failed to create dir: %v", localPath, err)
96
- return
97
- }
98
- } else {
+ if !obj.IsDir() {
99
link, err := driver.Link(ctx, obj, model.LinkArgs{})
100
if err != nil {
101
log.Warnf("failed to generate strm of obj %s: failed to link: %v", localPath, err)
0 commit comments