获取Minio中的文件使用Minio .NET SDK按日期排序

huangapple go评论91阅读模式
英文:

minio - get files from Minio by date using Minio .NET SDK

问题

我正在尝试使用Minio + Minio .NET SDK创建一个应用程序,该应用程序将仅检索过去5分钟上传的所有文件,但似乎唯一的方法是浏览所有文件并获取它们的文件时间戳,这是相当低效的。是否有人在使用他们的SDK时成功使用日期参数?

英文:

I'm trying to create an application using Minio + Minio .NET SDK that'll retrieve all files uploaded in the past 5 minutes only, however, it seems like the only way is browse all the files and get their file timestamp which is quite inefficient. Has anyone had any luck using a date parameter with their SDK ?

答案1

得分: 0

刚刚与项目维护人员之一核实,截至目前,使用其 SDK(https://github.com/minio/minio/discussions/17470)不可能实现该功能。

然而,另一种可能的方法是使用minio控制台命令:

mc find --newer-than 5m

英文:

Just checked with one of the project maintainers, as of now, it's not possible to do so using their SDK (https://github.com/minio/minio/discussions/17470) .

However , an alternative could be using minio console commands

mc find --newer-than 5m

huangapple
  • 本文由 发表于 2023年6月19日 17:36:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/76505380.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定