FilePath.opEquals

Returns true if all fields are identical. 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. equals_t opEquals(Object o)
    class FilePath
    final override
    equals_t
    opEquals
    (
    Object o
    )
  2. int opEquals(cstring s)

Meta