directory is already appended to finaldir