scanFiles no longer throws an exception if the directory doesn't exist (PLAT-567)

Since the common use-case is that we want to check if there are any files under a path, not check that the path exists, we make the default to not throw.