Lines Matching full:local
1 """Compare local and remote dictionaries and transfer differing files -- like rdist."""
21 r - read different files to local file system
23 c - create new files, either remote or local
24 d - delete disappearing files, either remote or local
30 local = FSProxy.FSProxyLocal()
32 compare(local, remote, mode)
34 local._close()
50 def compare(local, remote, mode): argument
56 print "calculating local sums ..."
58 for name, info in local.sumlist():
69 recvfile(local, remote, name)
75 lmtime = local.mtime(name)
79 recvfile(local, remote, name)
81 print "local newer",
83 sendfile(local, remote, name)
92 sendfile(local, remote, name)
101 if local.isdir(name):
107 pr = "Create local subdirectory %s? [y] " % \
114 local.mkdir(name)
118 lsubdirs = local.listsubdirs()
121 print "Local subdirectory", repr(name), "not found remotely"
124 local.cd(name)
126 compare(local, remote, mode)
128 local.back()
130 def sendfile(local, remote, name): argument
155 def recvfile(local, remote, name): argument
158 rv = recvfile_real(local, remote, name)
164 local.delete(name)
166 def recvfile_real(local, remote, name): argument
168 local.create(name)