def get_tuple(m=None, n=None, d=None): modified = set() if m is None else set(_as_list(m)) new = set() if n is None else set(_as_list(n)) deleted = set() if d is None else set(_as_list(d)) return modified, new, deleted
def modify(self, filename): for element in _as_list(filename): directory, _ = os.path.split(element) if directory: os.makedirs(directory, exist_ok=True) with open(element, 'w') as f: f.write('termite') sleep(0.01)