FilePath.opEquals

Does this FilePath match the given text? Note that some combinations of operations may not produce an identical set of fields. For example:

FilePath("/foo").append("bar").pop() == "/foo";
FilePath("/foo/").append("bar").pop() != "/foo/";

The latter Is Different due to variance in how append injects data, and how pop is expected to operate under different circumstances (both examples produce the same pop result, although the initial path is not identical).

However, opEquals() can overlook minor distinctions such as this example, and will return a match.

  1. bool opEquals(Object o)
  2. bool opEquals(const(char)[] s)
    class FilePath
    final const
    bool
    opEquals
    (
    const(char)[] s
    )

Meta