public static filesLsObjectresponse ipfsFilesLs(string path = "", bool longlist = false) { var argumentlist = "?"; if (path != "") { argumentlist += "arg=" + path + ";"; } if (longlist) { argumentlist += "l=true"; } argumentlist = argumentlist.Replace(";", "&").TrimEnd('&'); var response = IpfsRestClient.RunIpfsCommand("files/ls", argumentlist); return(JsonConvert.DeserializeObject <filesLsObjectresponse>(response)); }
public static PinObjectresponse IpfsPinLS(string path = "", string type = "", bool quiet = false) { var argumentlist = "?"; if (path != "") { argumentlist += "path=" + path + ";"; } if (type != "") { argumentlist += "type=" + type + ";"; } if (quiet) { argumentlist += "quiet=true"; } argumentlist = argumentlist.Replace(";", "&").TrimEnd('&'); var response = IpfsRestClient.RunIpfsCommand("pin/ls", argumentlist); return(JsonConvert.DeserializeObject <PinObjectresponse>(response)); }