TestAudioTagger test = new TestAudioTagger();
if (args.length == 0)
{
System.err.println("usage TestAudioTagger Dirname");
System.err.println(" You must enter the root directory");
System.exit(1);
}
else if (args.length > 1)
{
System.err.println("usage TestAudioTagger Dirname");
System.err.println(" Only one parameter accepted");
System.exit(1);
}
File rootDir = new File(args[0]);
if (!rootDir.isDirectory())
{
System.err.println("usage TestAudioTagger Dirname");
System.err.println(" Directory " + args[0] + " could not be found");
System.exit(1);
}
Date start = new Date();
System.out.println("Started to read from:" + rootDir.getPath() + " at " + DateFormat.getTimeInstance().format(start));
test.scanSingleDir(rootDir);
Date finish = new Date();
System.out.println("Started to read from:" + rootDir.getPath() + " at " + DateFormat.getTimeInstance().format(start));
System.out.println("Finished to read from:" + rootDir.getPath() + DateFormat.getTimeInstance().format(finish));
System.out.println("Attempted to read:" + count);
System.out.println("Successful to read:" + (count - failed));
System.out.println("Failed to read:" + failed);