Editor: allow to create a directory. fix #555.