Lines Matching refs:dir1
41 def __init__(self, dir1, dir2, action, **options): argument
54 self._dir1 = dir1
117 def _compare(self, dir1, dir2): argument
127 for cwd, dirs, files in os.walk(dir1):
130 path = os.path.relpath(os.path.join(cwd, f), dir1)
209 def _dowork(self, dir1, dir2, copyfunc=None, updatefunc=None): argument
213 self.log('Source directory: %s:' % dir1)
215 self._dcmp = self._compare(dir1, dir2)
279 def _copy(self, filename, dir1, dir2): argument
291 dir1 = os.path.join(dir1, rel_dir)
296 (filename, dir1, dir2))
315 sourcefile = os.path.join(dir1, filename)
330 if not os.path.exists(dir1):
336 os.makedirs(dir1)
342 targetfile = os.path.abspath(os.path.join(dir1, filename))
344 os.chmod(dir1, 1911) # 1911 = 0o777
351 os.path.join(dir1, filename))
374 def _update(self, filename, dir1, dir2): argument
381 file1 = os.path.join(dir1, filename)
469 def _dirdiffandcopy(self, dir1, dir2): argument
473 self._dowork(dir1, dir2, self._copy)
475 def _dirdiffandupdate(self, dir1, dir2): argument
479 self._dowork(dir1, dir2, None, self._update)
481 def _dirdiffcopyandupdate(self, dir1, dir2): argument
485 self._dowork(dir1, dir2, self._copy, self._update)
487 def _diff(self, dir1, dir2): argument
492 self._dcmp = self._compare(dir1, dir2)
495 self.log('Only in %s' % dir1)