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

Check path safety optionally instead of always #261

Closed
davibicudo opened this issue Mar 30, 2020 · 1 comment
Closed

Check path safety optionally instead of always #261

davibicudo opened this issue Mar 30, 2020 · 1 comment

Comments

@davibicudo
Copy link

Hi,

When instantiating a resource, would it be possible to check the path for safety only optionally?
Refering to:

if not helpers.is_safe_path(path[0]):

In my use case, we have a project with files stored on the local server and I'd like to better manage these files and perform data validation for internal purposes. This means what I'm doing is intended for a safe environment, not for any customer application. In this case, I'd like to be able to access the shared datasets from the absolute path, which is currently not possible.
Would it be possible to add an argument to the Datapackage instance allowing absolute paths?
Or maybe there is a better way of doing this which I'm not aware of?

Thank you!

@davibicudo
Copy link
Author

I just realized this is already an open issue at #171
Sorry for the duplicate.

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

No branches or pull requests

1 participant