/[rdiff-backup]/rdiff-backup/rdiff_backup/manage.py
ViewVC logotype

Diff of /rdiff-backup/rdiff_backup/manage.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by bescoto, Sun Oct 5 08:33:55 2003 UTC revision 1.11 by bescoto, Sat Nov 19 03:58:14 2005 UTC
# Line 88  def delete_earlier_than_local(baserp, ti Line 88  def delete_earlier_than_local(baserp, ti
88          """Like delete_earlier_than, but run on local connection for speed"""          """Like delete_earlier_than, but run on local connection for speed"""
89          assert baserp.conn is Globals.local_connection          assert baserp.conn is Globals.local_connection
90          def yield_files(rp):          def yield_files(rp):
                 yield rp  
91                  if rp.isdir():                  if rp.isdir():
92                          for filename in rp.listdir():                          for filename in rp.listdir():
93                                  for sub_rp in yield_files(rp.append(filename)):                                  for sub_rp in yield_files(rp.append(filename)):
94                                          yield sub_rp                                          yield sub_rp
95                    yield rp
96    
97          for rp in yield_files(baserp):          for rp in yield_files(baserp):
98                  if ((rp.isincfile() and rp.getinctime() < time) or                  if ((rp.isincfile() and rp.getinctime() < time) or

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26