DirectoryCompletion

class DIRAC.DataManagementSystem.Client.CmdDirCompletion.DirectoryCompletion.DirectoryCompletion(fs)

Bases: object

__init__(fs)

x.__init__(…) initializes x; see help(type(x)) for signature

check_absolute(path)
generate_absolute(path, cwd)
get_dirname(path)
get_filename(path, dirname)
parse_text_line(text, line, cwd)

Here, the text and line is from the complete_xxx(self, text, line, begidx, endidx).

text is the word. line is the whole sentence.

such as

/home/ihep/work/initrd.lz[]

[] indicates the CURSOR.

so, initrd.lz is the text, and /home/ihep/work/initrd.lz is the line.