All pastes #150033 Raw Edit

Unnamed

public text v1 · immutable
#150033 ·published 2006-08-26 10:56 UTC
rendered paste body
import os.path, md5

copied = []
def copy (ignore, dir, files):
  for file in files:
    if not md5.new (file).digest () in copied:
      print "Copying %s" % file

os.path.walk ('/usr/share/doc', copy, 0)