Add mkdir and readdir functions