Exemplo n.º 1
0
    bool FileSpecMatchesAsBaseOrFull(const FileSpec &left,
                                     const FileSpec &right) const {
        // If the filenames don't match, the paths can't be equal
        if (!left.FileEquals(right))
            return false;
        // If BOTH have a directory, also compare the directories.
        if (left.GetDirectory() && right.GetDirectory())
            return left.DirectoryEquals(right);

        // If one has a directory but not the other, they match.
        return true;
    }