Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Provide directory-helper-methods #10

Closed
TopperDEL opened this issue Mar 27, 2018 · 5 comments
Closed

Provide directory-helper-methods #10

TopperDEL opened this issue Mar 27, 2018 · 5 comments

Comments

@TopperDEL
Copy link

For my libstorj.NET-wrapper I want to provide methods to Access Folders and subfolders within buckets. There is an ongoing discussion about this as a SIP here.

I Can do something within my wrapper, but then you would Need to do it on your side, too, and we have code-duplication with probably different implementation.

I suggest extending your API with the following methods:

GetContent(Bucket b)
=> should return direct subfolders and files within the bucket as e.g. a "Content-object".
=> a Content-object might have two lists: files and folders

Get Content(Folder f)
=> shoudl return direct subfolders and files within a Folder as e.g. a "Content-object" as described above.

Once the SIP is implemented, the Internat structure Can be mapped accordingly. For the current implementation this might also make a buffer necessary, so that the Content of a bucket does not get reloaded on every API-Access.

@kaloyan-raev
Copy link
Collaborator

@TopperDEL I created #11 with first iteration of a File Tree API. Take a look at FileTreeExample.java on how to print the complete file tree in a Storj account.

@TopperDEL
Copy link
Author

Yes, that should be helpful for the start. Do you plan extending it? For reading the dir structure, this should be absolutely ok. For testing, I would Need new DLLs unfortunately. But take your time.

Thank you very much for your quick implementation!

@kaloyan-raev
Copy link
Collaborator

Yes, this is a first iteration. It will take a few more until we bake a good API for all operations.

Please, try it and give me some feedback of what improvements could be done.

I am attaching an updated JAR. No new DLLs are required as the change is only in the Java code.

libstorj-java-0.9.zip

@TopperDEL
Copy link
Author

Thank you! Will try this later today and Keep you updated.

@RichardLitt
Copy link
Contributor

👋 Hey! Thanks for this contribution. Apologies for the delay in responding!

We've decided to rearchitect Storj, so that we can scale better. You can read more about this decision here. This means that we are entirely focused on v3 at the moment, in the storj/storj repository. Our white paper for v3 is coming very, very soon - follow along on the blog and in our Rocketchat.

As this repository is part of the v2 network, we're no longer maintaining this repository. I am going to close this for now. If you have any questions, I encourage you to jump on Rocketchat and ask them there. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants