View Single Post
Old 09-10-2018, 01:26 AM   #12
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,016
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by kovidgoyal View Post
You really shouldn't download directly into that folder, instead download to another folder and move into the auto add folder.
Ya, I know, that's the right way. It's also inconvenient. Most of the time, my work around works, and when it doesn't, I just delete the bad file from calibre and redownload.

Quote:
On non-windows platforms, there is no reliable way to know when a file is finished being downloaded, so calibre simply waits a few seconds and then processes the file.
In linux, I think the inotify interface will let you know when nothing has the file open anymore. Or you could wait a few seconds after the file stops growing? inotify is also a good way to find out things have been added to the directory without polling it constantly.

Quote:
And as far as I know, file timestamps are not considered at all when deciding whether to add a file or not.
It could be coincidence that files sat in the autoimport directory for 5 minutes and then were imported immediately after I touched them. Or maybe the timestamp is not relevant, but touching them somehow triggers calibre to do a rescan?
compurandom is offline   Reply With Quote