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

#26/base path #27

Merged
merged 3 commits into from
Dec 22, 2016
Merged

#26/base path #27

merged 3 commits into from
Dec 22, 2016

Conversation

dumyan
Copy link
Contributor

@dumyan dumyan commented Dec 21, 2016

Fixes #26

With this PR, a basePath can be specified when creating a Resource which defaults to null.

Also, when working with the Datapackage class, a basePath can be specified. If not specified and the descriptor is a local path, the dirname of the descriptor path is used as the basePath. This makes sense because as per Datapackage specs, resources location can't be behind the datapackage.json directory in the directory tree (nor the URI can contain ..).

@dumyan dumyan self-assigned this Dec 21, 2016
@dumyan dumyan requested a review from roll December 21, 2016 15:53
@dumyan dumyan added the review label Dec 21, 2016
@roll roll merged commit b8cb28c into frictionlessdata:update Dec 22, 2016
@roll roll removed the review label Dec 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants