reading dir from url