mirror of
https://github.com/zigholding/obsidian-notesync-plugin.git
synced 2026-07-22 05:43:30 +00:00
update
This commit is contained in:
parent
5dc27073d1
commit
5f029a5389
2 changed files with 2 additions and 2 deletions
BIN
assets/Pasted image 20241215125538.png
Normal file
BIN
assets/Pasted image 20241215125538.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
4
main.ts
4
main.ts
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue