def __init__(self, vim, cwd, fs, prevcwd=None): self.vim = vim self.cwd = cwd self.fs = fs self.nodes = self.createNodes(cwd) self.nodes.insert(0, Node(self.cwd, self.vim.vars['NETRHiCWD'])) self.initClineNo(prevcwd) self.nodes[self.clineNo].cursor_on() self.mtime = Shell.mtime(cwd)
def is_dirty(self): return Shell.mtime(self.cwd) > self.mtime