diff --git a/plugin/contents_conversion/filePathConvertor.ts b/plugin/contents_conversion/filePathConvertor.ts index 96cef7b0..728b4ef5 100644 --- a/plugin/contents_conversion/filePathConvertor.ts +++ b/plugin/contents_conversion/filePathConvertor.ts @@ -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(