All pastes #53710 Raw Edit

recursive ls

public python v1 · immutable
#53710 ·published 2006-05-05 11:02 UTC
rendered paste body
import osdef recursive_list(init_path):	files = os.listdir(init_path)	for file in files:		new_path = os.path.join(init_path, file)        	print new_path        if os.path.isdir(new_path) == True:		recursive_list(new_path)if __name__ == "__main__":	recursive_list("/home/majain")