|
@@ -1018,7 +1018,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
|
|
|
// 指定要删除文件的桶名和目录名
|
|
|
String bucketName = this.bucketName;
|
|
|
- String prefix = "/camera_picture/normal/";
|
|
|
+ String prefix = "camera_picture/normal/";
|
|
|
|
|
|
// 指定要删除的时间点(此处为当前时间之前的时间)
|
|
|
ZonedDateTime deleteTime = ZonedDateTime.now().minusDays(90); // 删除90天前的文件
|
|
@@ -1084,11 +1084,13 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
|
|
|
// Bucket name
|
|
|
String bucketName = this.bucketName;
|
|
|
-
|
|
|
+ String prefix = "camera_picture/normal/";
|
|
|
// List all objects in the bucket
|
|
|
- Iterable<Result<Item>> results = minioClient.listObjects(ListObjectsArgs.builder().bucket(bucketName).recursive(true).build());
|
|
|
+ Iterable<Result<Item>> results = minioClient.listObjects(ListObjectsArgs.builder().bucket(bucketName).prefix(prefix).recursive(true).build());
|
|
|
+ log.info("-------获取minio所有图片--------"+results);
|
|
|
for (Result<Item> result : results) {
|
|
|
Item item = result.get();
|
|
|
+ log.info("----item.lastModified()----"+item.lastModified());
|
|
|
log.info(item.objectName());
|
|
|
}
|
|
|
} catch (Exception e) {
|