2121import run .ikaros .api .core .attachment .Attachment ;
2222import run .ikaros .api .core .attachment .AttachmentConst ;
2323import run .ikaros .api .core .attachment .AttachmentOperate ;
24+ import run .ikaros .api .core .meta .MetaOperate ;
2425import run .ikaros .api .core .setting .ConfigMap ;
2526import run .ikaros .api .custom .ReactiveCustomClient ;
2627import run .ikaros .api .infra .utils .StringUtils ;
@@ -43,10 +44,13 @@ public class AListClient implements InitializingBean, DisposableBean {
4344
4445 private final ReactiveCustomClient customClient ;
4546 private final AttachmentOperate attachmentOperate ;
47+ private final MetaOperate metaOperate ;
4648
47- public AListClient (ReactiveCustomClient customClient , AttachmentOperate attachmentOperate ) {
49+ public AListClient (ReactiveCustomClient customClient , AttachmentOperate attachmentOperate ,
50+ MetaOperate metaOperate ) {
4851 this .customClient = customClient ;
4952 this .attachmentOperate = attachmentOperate ;
53+ this .metaOperate = metaOperate ;
5054 }
5155
5256 public Mono <Void > doImportFilesFromAListPath (List <String > paths ) {
@@ -81,6 +85,7 @@ private Mono<Void> createAttachmentRecursively(List<String> paths, Long parentId
8185
8286 AListAttachment [] attachments = fetchAttachments (paths );
8387 return Flux .fromStream (Arrays .stream (attachments ))
88+ .parallel ()
8489 .map (aListAttachment -> {
8590 List <String > newPaths = new ArrayList <>(paths );
8691 newPaths .add (aListAttachment .getName ());
0 commit comments