baniol / kindle-my-clippings

kindle My Clippings.txt parser to JSON / html
MIT License
40 stars 10 forks source link

Absolute file paths works incorrect #3

Closed A closed 3 years ago

A commented 9 years ago

My code:

const opts = {
  file: '/Volumes/Kindle/documents/My\ clippings.txt'
};

And result:

{ [Error: ENOENT: no such file or directory, open '/Users/a8h333/Projects/kindle//Volumes/Kindle/documents/My clippings.txt']
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/a8h333/Projects/kindle//Volumes/Kindle/documents/My clippings.txt' }
baniol commented 8 years ago

generally, the module needs some refactoring and tests updating. I'll try to fix this over the upcoming weekend.