Register directory and files

Why?