This commit is contained in:
zigholding 2024-12-15 13:09:00 +08:00
parent 5dc27073d1
commit 5f029a5389
2 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

View file

@ -139,14 +139,14 @@ export default class NoteSyncPlugin extends Plugin {
// 导出附件
let assets = nc.editor.get_frontmatter(tfile,this.yaml)?.Assets;
if(assets){
let olinks = nc.chain.get_outlinks(tfile);
let olinks = nc.chain.get_outlinks(tfile,false);
let adir = dst+'/'+assets;
this.fsEditor.mkdir_recursive(adir);
for(let f of olinks){
if(!(f.extension==='md')){
let flag = this.fsEditor.copy_tfile(f,adir+'/'+f.basename+'.'+f.extension);
if(flag){
new Notice(`Copy ${f}`,5000)
new Notice(`Copy ${f.name}`,5000)
}
}
}