mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Export: export attachments with attachment folder path
This commit is contained in:
parent
43fcdd502a
commit
d1e7926630
@ -1034,8 +1034,8 @@ int VExportDialog::doExportMarkdown(VFile *p_file,
|
||||
if (!attaFolder.isEmpty()) {
|
||||
QString attaFolderPath;
|
||||
attaFolderPath = noteFile->fetchAttachmentFolderPath();
|
||||
attaFolder = VUtils::getDirNameWithSequence(outputPath, attaFolder);
|
||||
QString folderPath = QDir(outputPath).filePath(attaFolder);
|
||||
QString relativePath = QDir(noteFile->fetchBasePath()).relativeFilePath(attaFolderPath);
|
||||
QString folderPath = QDir(outputPath).filePath(relativePath);
|
||||
|
||||
// Copy attaFolder to folderPath.
|
||||
if (!VUtils::copyDirectory(attaFolderPath, folderPath, false)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user