Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetching from local repositories with getfile #55

Open
k1o0 opened this issue Aug 6, 2019 · 0 comments
Open

Fetching from local repositories with getfile #55

k1o0 opened this issue Aug 6, 2019 · 0 comments
Assignees

Comments

@k1o0
Copy link
Contributor

k1o0 commented Aug 6, 2019

Currently getFile works well with http servers as it uses the data_url field in alyx to generate the paths:

repos = obj.getData('data-repository');
repos = containers.Map({repos.name}, {repos.data_url});
fullPath = mapToCell(@(s)[repos(s.data_repository) s.relative_path], filerecords);

The problem is that local servers such as zserver and zubjects are accessed via SMB and not over http. For these repositories data_url = null.

Possible solution: if data_url field is empty, use the hostname field instead e.g. arrayfun(@(x) iff(isempty(x.data_url), ['\\' x.hostname], x.data_url), obj.getData('data-repository'), 'uni', 0);

@k1o0 k1o0 self-assigned this Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant