commit a dir