All pastes #752634 Raw Edit

Mine

public text v1 · immutable
#752634 ·published 2007-10-28 16:25 UTC
rendered paste body
try:
	hmmm
		if i == '-c':
			print 'completed'
			continue

		if i == '-p':
			print 'progress'
			continue

		if i == '-w':
			print 'watch'
			continue

		if i == '-h':
			print 'help'
			continue
except:
	for j in watch:
		if j[0] == 0:
			dirs = os.listdir(j[1])
			w = w + len(dirs)
		elif j[0] == 1:
			dirs = os.listdir(j[1])
			w = w + len(dirs)
			dirs = os.listdir(j[2])
			w = w + len(dirs)
		elif j[0] == 2:
			dirs = os.listdir(j[1])
			w = w + len(dirs)
			dirs = os.listdir(j[2])
			c = c + len(dirs)

	progress = readconfig.get_progress()
	p = len(os.listdir(progress))

	print 'There are', p, 'torrents in progress,', w, 'in monitoring and', c, 'complete.'