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

Object API is deprecated #39

Open
DreadfulBot opened this issue Aug 8, 2024 · 1 comment
Open

Object API is deprecated #39

DreadfulBot opened this issue Aug 8, 2024 · 1 comment

Comments

@DreadfulBot
Copy link

On Kubo kubov0.29.0 looks like all the objects are deprecated now, so for example method FileSystem.AddDirectoryAsync throws the error in a moment of creating empty directory here:

FileSystemApi.cs, line 139

Screenshot 2024-08-08 at 1 56 40 PM

Because empty folder creation is based on ipfs.Object,

Screenshot 2024-08-08 at 1 57 19 PM

So here error occurs:

ipfs-object

Removed, use 'ipfs dag' or 'ipfs files' instead

I started to work on another approach with command add and specially formatted MultipartFormDataContent as well, will finish later for everyone who is interested.

Screenshot 2024-08-08 at 1 59 42 PM

But maybe problem is already known and I'm developing a bicycle?

@Arlodotexe
Copy link
Collaborator

Arlodotexe commented Aug 11, 2024

Thank you for reporting this. We shouldn't be using the object api if it's deprecated.

It looks like they moved the ipfs object new functionality to ipfs files mkdir, which is an mfs api we've got implemented here. Should let us create a functional replacement.

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

2 participants