dir str for open swift