'only called on non option completions'

def __call__(self, prefix, **kwargs):

    if (os.path.sep in prefix[1:]):
        prefix_dir = len((os.path.dirname(prefix) + os.path.sep))
    else:
        prefix_dir = 0
    completion = []
    globbed = []
    if (('*' not in prefix) and ('?' not in prefix)):
        if (prefix[(-1)] == os.path.sep):
            globbed.extend(glob((prefix + '.*')))
        prefix += '*'
    globbed.extend(glob(prefix))
    for x in sorted(globbed):
        if os.path.isdir(x):
            x += '/'
        completion.append(x[prefix_dir:])
    return completion
