Maybe easier to just pass the target directory here ? And call the method only once ?