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

load Object with StorageRoot? #1

Closed
ghukill opened this issue Dec 12, 2018 · 1 comment
Closed

load Object with StorageRoot? #1

ghukill opened this issue Dec 12, 2018 · 1 comment

Comments

@ghukill
Copy link
Member

ghukill commented Dec 12, 2018

Currently, passing an OCFLStorageRoot instance is required for loading an object, as it uses that path of the StorageRoot to build the full_path.

But it would be handy to load objects directly, perhaps without knowing about StorageRoot (or if outside). Should work without much changes, just handling None during os.path.join

@ghukill
Copy link
Member Author

ghukill commented Dec 20, 2018

Addressed - objects may be "opened" with storage root attached, or not. If not, obj.path is assumed to be full path to object, and serves as means to move "into" a storage root.

@ghukill ghukill closed this as completed Dec 20, 2018
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