'Assuming I am representing a directory, return a list of FilePaths
representing my children that match the given pattern.
@param pattern: A glob pattern to use to match child paths.
@type pattern: L{unicode} or L{bytes}
@return: A L{list} of matching children.
@rtype: L{list} of L{FilePath}, with the mode of C{pattern}\'s type'

def globChildren(self, pattern):

    sep = _coerceToFilesystemEncoding(pattern, os.sep)
    ourPath = self._getPathAsSameTypeAs(pattern)
    import glob
    path = (((ourPath[(-1)] == sep) and (ourPath + pattern)) or sep.join([ourPath, pattern]))
    return [self.clonePath(p) for p in glob.glob(path)]
