mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 19:54:54 -06:00
Allow chunks subdirectories in the disk storage to be symlinks.
This commit is contained in:
@@ -165,8 +165,8 @@ func (storage *FileStorage) UploadFile(threadIndex int, filePath string, content
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !stat.IsDir() {
|
if !stat.IsDir() && stat.Mode() & os.ModeSymlink == 0 {
|
||||||
return fmt.Errorf("The path %s is not a directory", dir)
|
return fmt.Errorf("The path %s is not a directory or symlink", dir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user