Primitive version of directory handling.