data and attachment directories need trailing slash. If we don't require it,