Light will almost always travel from one place to another along a path of least?

Light will almost always travel from one place to another along a path that takes the least amount of time. This does not imply that it will take the path involves the least distance all the time.