Extends require to handle both local paths from the entry point as well as the ability to include an entire directory