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

DoAddCommand - Replacement for NonWorking .Object API #40

Closed
wants to merge 5 commits into from

Conversation

DreadfulBot
Copy link

Details are here - #39

/// <param name="arg">Args</param>
/// <param name="options">Options</param>
/// <returns>Response</returns>
public async Task<ICollection<IpfsFile>> DoAddCommand(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UploadAsync methods handles multipart form data for a given command. We shouldn't need to create a new method for this, especially not one this specific in a class this general.

Instead of this, we should just fix the existing FileSystem.AddDirectoryAsync method.

/// IpfsFile
/// </summary>
[DataContract]
public class IpfsFile
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this type was created for the DoAddCommand method created above, but we already have this in ipfs-net-core as IFileSystemLink and IMerkleLink, with a FileSystemLink implementation in this repo.

@@ -0,0 +1,5 @@
include .env
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to include a makefile. The underlying commands are already as simple as can be, and our CI handles publishing updates to nuget.

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to add a nuspec here, and these values are different from our published package.

@Arlodotexe
Copy link
Collaborator

Significant improvements around the FilestoreApi.AddAsync method have been made as of 0.6.0, and the deprecated Object API has been removed entirely. See #43

@Arlodotexe Arlodotexe closed this Nov 21, 2024
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.

2 participants