I\'m executing a function multiple times using multiprocessing. The function iterates part of a directory, depending on nu