Skip to content

Commit

Permalink
fix: relative path for the same folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Sep 13, 2022
1 parent 30fe4d3 commit 3a4f232
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugin/contents_conversion/filePathConvertor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,15 @@ function createRelativePath(
relativePath.push('..');
}
}

return relativePath;
};
return diffTarget(diffSourcePath).concat(diffTargetPath).join('/')
const relativePath = diffTarget(diffSourcePath);
if (relativePath.length === 0) {
relativePath.push('.')
}
console.log(relativePath.concat(diffTargetPath).join('/'))
return relativePath.concat(diffTargetPath).join('/')
}

function folderNoteIndexOBS(
Expand Down

0 comments on commit 3a4f232

Please sign in to comment.