Segments directory created if missing