Export all notes functionality errors on "file already exist"

Bug report

When trying to export all notes into a certain folder:

C:\Users\Admin\AppData\Local\inkdrop\app-4.6.0\resources\app.asar\node_modules\@bugsnag\browser\dist\bugsnag.js:2042 app:error Failed to export: +0ms Error: EEXIST: file already exists, mkdir 'C:\Users\Admin\Google Drive\inkdrop\BAP'
    at mkdirSync (fs.js:764)
    at fs.mkdirSync (electron/js2c/asar.js:687)
    at Object.fs.mkdirSync (electron/js2c/asar.js:687)
    at exportBook (C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\export-as-markdown\lib\exporter.js:113)
    at exportAll (C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\export-as-markdown\lib\exporter.js:46)
console.<computed> @ C:\Users\Admin\AppData\Local\inkdrop\app-4.6.0\resources\app.asar\node_modules\@bugsnag\browser\dist\bugsnag.js:2042
C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\debug\src\common.js:114 app:error Notification: +0ms Failed to export Object
debug @ C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\debug\src\common.js:114
C:\Users\Admin\AppData\Local\inkdrop\app-4.6.0\resources\app.asar\node_modules\@bugsnag\browser\dist\bugsnag.js:2042 app:error Failed to export: +44s Error: EEXIST: file already exists, mkdir 'C:\Users\Admin\Google Drive\inkdrop\.NET'
    at mkdirSync (fs.js:764)
    at fs.mkdirSync (electron/js2c/asar.js:687)
    at Object.fs.mkdirSync (electron/js2c/asar.js:687)
    at exportBook (C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\export-as-markdown\lib\exporter.js:113)
    at exportAll (C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\export-as-markdown\lib\exporter.js:46)
console.<computed> @ C:\Users\Admin\AppData\Local\inkdrop\app-4.6.0\resources\app.asar\node_modules\@bugsnag\browser\dist\bugsnag.js:2042
C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\debug\src\common.js:114 app:error Notification: +44s Failed to export Object
debug @ C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\debug\src\common.js:114
C:\Users\Admin\AppData\Local\inkdrop\app-4.6.0\resources\app.asar\node_modules\@bugsnag\browser\dist\bugsnag.js:2042 app:error Failed to export: +18s Error: EEXIST: file already exists, mkdir 'C:\Users\Admin\Google Drive\inkdrop\.NET'
    at mkdirSync (fs.js:764)
    at fs.mkdirSync (electron/js2c/asar.js:687)
    at Object.fs.mkdirSync (electron/js2c/asar.js:687)
    at exportBook (C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\export-as-markdown\lib\exporter.js:113)
    at exportAll (C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\export-as-markdown\lib\exporter.js:46)
console.<computed> @ C:\Users\Admin\AppData\Local\inkdrop\app-4.6.0\resources\app.asar\node_modules\@bugsnag\browser\dist\bugsnag.js:2042
C:\Users\Admin\AppData\Local\inkdrop\app-4.6.1\resources\app.asar\node_modules\debug\src\common.js:114 app:error Notification: +18s Failed to export Object

Info

  • Platform: Windows
  • Platform version: 18363
  • App Version: 4.6.1

Reproduce

Export all notes into a selected folder

Hi Tiemen,

Thank you for reporting it.
Oops, that’s a bug! Will fix it in the next release.