• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find Missing Files
#6
My programming experience has shown that, when there are a "lot of files", it is quicker to get a directory list and match the songs against that.


Assuming that the database contains the relative path for each song, the fastest way is probably to preprocess the database generating a list of "relative paths". Then generate a cumulative directory list  (using FirstFile/ NextFile type functions or whatever your programming language provides) of each relative path. Sort the cumulative list and use a binary search when checking to see if a song exists.

Geoff
Samsung Galaxy Tab A6
Reply


Messages In This Thread
Find Missing Files - by itsme - 10-27-2017, 07:23 AM
RE: Find Missing Files - by Zubersoft - 10-27-2017, 05:13 PM
RE: Find Missing Files - by itsme - 10-27-2017, 07:25 PM
RE: Find Missing Files - by Zubersoft - 10-28-2017, 02:42 AM
RE: Find Missing Files - by Zubersoft - 10-29-2017, 09:34 AM
RE: Find Missing Files - by Geoff Bacon - 10-30-2017, 04:17 AM
RE: Find Missing Files - by itsme - 10-30-2017, 08:50 AM
RE: Find Missing Files - by itsme - 10-30-2017, 09:24 AM
RE: Find Missing Files - by itsme - 10-30-2017, 09:31 AM
RE: Find Missing Files - by Zubersoft - 10-30-2017, 12:34 PM
RE: Find Missing Files - by itsme - 10-30-2017, 04:09 PM
RE: Find Missing Files - by itsme - 10-30-2017, 04:14 PM
RE: Find Missing Files - by itsme - 10-30-2017, 04:27 PM
RE: Find Missing Files - by Zubersoft - 10-30-2017, 06:45 PM
RE: Find Missing Files - by itsme - 11-01-2017, 03:13 PM
RE: Find Missing Files - by Zubersoft - 11-01-2017, 03:50 PM
RE: Find Missing Files - by itsme - 11-02-2017, 08:17 AM
RE: Find Missing Files - by itsme - 11-15-2017, 08:50 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.