AddItem can be used for adding either a file or directory. AddFile was made a private/internal method in this change