'If this L{File}\'s path refers to a directory, return a L{File}
referring to the file named C{path} in that directory.
If C{path} is the empty string, return a L{DirectoryLister} instead.'

def getChild(self, path, request):

    self.restat(reraise=False)
    if (not self.isdir()):
        return self.childNotFound
    if path:
        try:
            fpath = self.child(path)
        except filepath.InsecurePath:
            return self.childNotFound
    else:
        fpath = self.childSearchPreauth(*self.indexNames)
        if (fpath is None):
            return self.directoryListing()
    if (not fpath.exists()):
        fpath = fpath.siblingExtensionSearch(*self.ignoredExts)
        if (fpath is None):
            return self.childNotFound
    if (platformType == 'win32'):
        processor = InsensitiveDict(self.processors).get(fpath.splitext()[1])
    else:
        processor = self.processors.get(fpath.splitext()[1])
    if processor:
        return resource.IResource(processor(fpath.path, self.registry))
    return self.createSimilarFile(fpath.path)
