fp/add: Rewrote add_directories method