G-Node / G-Node/libgin

Improve implementation of annex content file discovery

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Description

https://github.com/G-Node/libgin/blob/80a13e337f05ca60d46d6fd4e8f3d121ffa40f20/libgin/annex/file.go#L27

The `NewAFile()` function infers the key from the path in the contents of the file and then runs a search through the directory tree to find the matching filename. We should instead use the new `ContentLocation` function:
https://github.com/G-Node/libgin/blob/80a13e337f05ca60d46d6fd4e8f3d121ffa40f20/libgin/annex/util.go#L73

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.