Re: Are there file watchers that can tell me when a file is done uploading?

2017-01-16 Thread Michael Wood
By "the different apps that are handling the actual upload", do you mean
the clients, or do you have different servers accepting the uploads?

What I meant was that the server (which could be a CGI script or a servlet
or an FTP server etc.) would know when the file has finished uploading, so
can do the rename whatever.

e.g. pureftpd can apparently run custom code when an upload has finished:
https://download.pureftpd.org/pub/pure-ftpd/doc/README
Search for "AFTER AN UPLOAD".

On 18 Dec 2016 02:12, "larry google groups" 
wrote:


Thank you. I do move and rename the file, though even knowing when to move
to it depends on knowing when it is fully uploaded.

In this case, we have many ways that the files might be uploaded, so I
prefer to deal with the file inside of Clojure, rather than trying to
customize each of the different apps that are handling the actual upload.


On Tuesday, December 13, 2016 at 8:25:41 PM UTC-5, Michael Wood wrote:

> Another option: Whatever accepts the upload (e.g. a cgi script) moves the
> file to where the clojure code expects to find it only when it is fully
> uploaded. the move should be an atomic operation.
>
> On 11 Dec 2016 21:47, "larry google groups"  wrote:
>
>>
>> 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 clo...@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+u...@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+u...@googlegroups.com.
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
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.

-- 
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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-17 Thread larry google groups

Thank you. I do move and rename the file, though even knowing when to move 
to it depends on knowing when it is fully uploaded. 

In this case, we have many ways that the files might be uploaded, so I 
prefer to deal with the file inside of Clojure, rather than trying to 
customize each of the different apps that are handling the actual upload. 


On Tuesday, December 13, 2016 at 8:25:41 PM UTC-5, Michael Wood wrote:
>
> Another option: Whatever accepts the upload (e.g. a cgi script) moves the 
> file to where the clojure code expects to find it only when it is fully 
> uploaded. the move should be an atomic operation.
>
> On 11 Dec 2016 21:47, "larry google groups"  > wrote:
>
>>
>> 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 clo...@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+u...@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+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-14 Thread Michael Wood
Yes, exactly. Move and rename are the same thing :)

On 14 Dec 2016 08:41, "Torsten Uhlmann"  wrote:

... or renames it. That's what browsers do for instance when downloading
stuff.

Michael Wood  schrieb am Mi., 14. Dez. 2016 um
02:25 Uhr:

> Another option: Whatever accepts the upload (e.g. a cgi script) moves the
> file to where the clojure code expects to find it only when it is fully
> uploaded. the move should be an atomic operation.
>
> On 11 Dec 2016 21:47, "larry google groups" 
> wrote:
>
>
> 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.
>
> --
> 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 <+49%203721%20273445>
Fax: +49 3721 273446 <+49%203721%20273446>
Mobile:+49 151 12412427 <+49%201511%202412427>
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.

-- 
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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-13 Thread Torsten Uhlmann
... or renames it. That's what browsers do for instance when downloading
stuff.

Michael Wood  schrieb am Mi., 14. Dez. 2016 um
02:25 Uhr:

> Another option: Whatever accepts the upload (e.g. a cgi script) moves the
> file to where the clojure code expects to find it only when it is fully
> uploaded. the move should be an atomic operation.
>
> On 11 Dec 2016 21:47, "larry google groups" 
> wrote:
>
>
> 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.
>
> --
> 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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-13 Thread Michael Wood
Another option: Whatever accepts the upload (e.g. a cgi script) moves the
file to where the clojure code expects to find it only when it is fully
uploaded. the move should be an atomic operation.

On 11 Dec 2016 21:47, "larry google groups" 
wrote:

>
> 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.
>

-- 
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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-12 Thread Jason Felice
At least back in the day, on Windows, the file size would stay zero until
the file was closed.

On Mon, Dec 12, 2016 at 11:19 AM, larry google groups <
lawrencecloj...@gmail.com> wrote:

>
> > My inclination would be to watch for files in a directory, then poll
> their filesize. If it
> > remains static for, say, 30 seconds, they we can assume they're complete.
>
> That was my first thought. Then I thought someone had perhaps already done
> this in a library. But perhaps the code is to trivial to bundle up into a
> library? I suppose this is the route that I'll take, though it seems
> inexact.
>
>
>
>
>
> On Sunday, December 11, 2016 at 5:05:52 PM UTC-5, James Reeves wrote:
>>
>> Checking whether a file is being written to tends to be very platform
>> specific. I don't think that there's any Java library that manages it
>> perfectly, but I could be wrong.
>>
>> My inclination would be to watch for files in a directory, then poll
>> their filesize. If it remains static for, say, 30 seconds, they we can
>> assume they're complete.
>>
>> Alternatively, you could build a simple web app with a drag and drop file
>> API. Users open the webpage, drag the Excel files to it, and you can then
>> control the upload and processing directly, even providing feedback.
>>
>> - James
>>
>> On 11 December 2016 at 19:47, larry google groups 
>> wrote:
>>
>>>
>>> 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 clo...@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+u...@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+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> 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.
>

-- 
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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-12 Thread larry google groups

> My inclination would be to watch for files in a directory, then poll 
their filesize. If it 
> remains static for, say, 30 seconds, they we can assume they're complete.

That was my first thought. Then I thought someone had perhaps already done 
this in a library. But perhaps the code is to trivial to bundle up into a 
library? I suppose this is the route that I'll take, though it seems 
inexact. 





On Sunday, December 11, 2016 at 5:05:52 PM UTC-5, James Reeves wrote:
>
> Checking whether a file is being written to tends to be very platform 
> specific. I don't think that there's any Java library that manages it 
> perfectly, but I could be wrong.
>
> My inclination would be to watch for files in a directory, then poll their 
> filesize. If it remains static for, say, 30 seconds, they we can assume 
> they're complete.
>
> Alternatively, you could build a simple web app with a drag and drop file 
> API. Users open the webpage, drag the Excel files to it, and you can then 
> control the upload and processing directly, even providing feedback.
>
> - James
>
> On 11 December 2016 at 19:47, larry google groups  > wrote:
>
>>
>> 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 clo...@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+u...@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+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-11 Thread James Reeves
Checking whether a file is being written to tends to be very platform
specific. I don't think that there's any Java library that manages it
perfectly, but I could be wrong.

My inclination would be to watch for files in a directory, then poll their
filesize. If it remains static for, say, 30 seconds, they we can assume
they're complete.

Alternatively, you could build a simple web app with a drag and drop file
API. Users open the webpage, drag the Excel files to it, and you can then
control the upload and processing directly, even providing feedback.

- James

On 11 December 2016 at 19:47, larry google groups  wrote:

>
> 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.
>

-- 
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.


Re: Are there file watchers that can tell me when a file is done uploading?

2016-12-11 Thread Torsten Uhlmann
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  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.


Are there file watchers that can tell me when a file is done uploading?

2016-12-11 Thread larry google groups

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.