allow scanning a single file instead of a directory.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 27 Aug 2013 18:21:37 +0000 (15:21 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 30 Aug 2013 14:29:56 +0000 (11:29 -0300)
commitd0c324019ea5392e1af66775554d25e4bead884c
treec59418b59b5399876bf3593fe7c03d551658e5f0
parentfbc94e14745cc1083980c09932712cfc9158b67d
allow scanning a single file instead of a directory.

The previous code assumed we always scan a directory, this is
cumbersome if we know just one file changed and want to scan only that
instance and not the whole dir recursively.

It is now allowed to check a non-existent directory or file, this will
mark any existing entry as deleted in the database.
src/bin/test.c
src/lib/lightmediascanner_check.c
src/lib/lightmediascanner_process.c