All pastes #296127 Raw Edit

Someone

public python v1 · immutable
#296127 ·published 2006-12-29 23:40 UTC
rendered paste body
for arg in sys.argv[1:]:    if os.path.isdir(arg):        for root, dirs, files2 in os.walk(arg):            files.extend([os.path.join(root, file) for file in files2])    elif os.path.isfile(arg):        files.append(arg)