View Single Post
Old 01-01-2016, 05:14 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,463
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm afraid not. There is no way to make "resetting file attributes" robust across OSes and filesystems. It's up to you to make sure file attributes for files you put there are correct.

Simply have your batch file create and delete a temporary file in the auto-add folder, that should be enough to trigger a rescan. Or do a file rename to a new filename, though whether that is sufficient or not will depend on the file watching semantics of Qt on your platform.

Last edited by kovidgoyal; 01-01-2016 at 05:31 AM.
kovidgoyal is offline   Reply With Quote