fsprojects / FsReveal

FsReveal parses markdown and F# script file and generates reveal.js slides.
http://fsprojects.github.io/FsReveal
258 stars 100 forks source link

Prevent crashes on temporary/partially downloaded files #29

Closed filipw closed 9 years ago

filipw commented 9 years ago

Fixes #28.

Should not fire generateFor if the file is hidden or when the FileInfo from the watcher event is a directory. This prevent all the erroneous output and exception traces on every change ('string cannot be of zero length').

Additionally, should handle FileNotFoundException is the file disappeared between the event firing and the handling - which is what happens if you download an image using Chrome (creates a temp crdownload file).

forki commented 9 years ago

very cool. thanks