Have a look at https://github.com/derekchiang/Clojure-Watch, it uses the underlying Java7 WatchEvent API. It supports :create, :modify and :delete events on watched files.
Would that help? Torsten. larry google groups <lawrencecloj...@gmail.com> schrieb am So., 11. Dez. 2016 um 20:47 Uhr: > > I'm in a situation where we allow staff to upload Microsoft Excel files to > our servers, which we then parse and store the data in DynamoDB. > > I've only used file watchers once before, to watch for any change in a > directory. These seemed to trigger when a file was created in a directory > -- I recall I then tried to read from such files, but I got an error > because the file was still being written. I'm curious if there are file > watchers that I can have trigger when a file is fully uploaded, or fully > copied? > > My goal is to avoid the errors that occur when I try to read from a file > that is still being written to. > > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- AGYNAMIX(R). Passionate Software. Inh. Torsten Uhlmann | Buchenweg 5 | 09380 Thalheim Phone: +49 3721 273445 Fax: +49 3721 273446 Mobile: +49 151 12412427 Web: http://www.agynamix.de -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.