equal
deleted
inserted
replaced
117 if filename[-1] == '~': |
117 if filename[-1] == '~': |
118 continue |
118 continue |
119 src = '%s/%s' % (directory, filename) |
119 src = '%s/%s' % (directory, filename) |
120 dest = to_dir + src[len(from_dir):] |
120 dest = to_dir + src[len(from_dir):] |
121 if verbose: |
121 if verbose: |
122 print >> sys.stderr, src, '->', dest |
122 sys.stderr.write('%s -> %s\n' % (src, dest)) |
123 if os.path.isdir(src): |
123 if os.path.isdir(src): |
124 if not exists(dest): |
124 if not exists(dest): |
125 os.mkdir(dest) |
125 os.mkdir(dest) |
126 else: |
126 else: |
127 if exists(dest): |
127 if exists(dest): |