Transform directory path representation