Register directory and files