If tracknumber already has totalnumber in it, there is no need to set it again.
If directory doesn't exist a correct output will be provided for 24bit check.
Even simplier credit in description.