yejianye / eversync

Sync text files (txt, markdown, org-mode) in local directory to evernote notebook
MIT License
47 stars 3 forks source link

ValueError: max() arg is an empty sequence #2

Open vitaly-zdanevich opened 8 years ago

vitaly-zdanevich commented 8 years ago

eversync --dir ~/.local/share/notes/ --notebook 'xfce4-notes'

Traceback (most recent call last):
  File "/usr/local/bin/eversync", line 9, in <module>
    load_entry_point('eversync==0.1.0', 'console_scripts', 'eversync')()
  File "build/bdist.linux-i686/egg/eversync/main.py", line 179, in main
  File "build/bdist.linux-i686/egg/eversync/main.py", line 136, in changed_since_last_sync
ValueError: max() arg is an empty sequence
yejianye commented 8 years ago

Looks like eversync didn't find any file with .txt, .md, markdown, .org under ~/.local/share/notes directory.

vitaly-zdanevich commented 8 years ago

Xubuntu have preinstalled simple note app xfce4-notes that stores plain text in files without any extensions - maybe you can fix your code for such situations?..

yejianye commented 8 years ago

A potential improvement for existing approach is to allow a .eversync file in which users could specify the file patterns that they want to include for syncing.

An example of .eversync file

*.txt
*.md
my-note
vitaly-zdanevich commented 8 years ago

I created file .eversync with the content: my-note in my folder with files for sync, but again I see the same error after eversync --dir /my/path/ --notebook 'my-notebook'

eversync-error