Find and List Files

import os
 
class FindTiles():
	def __init__(self):
		pass
 
	def findTiles(self):
		directorypath = raw_input('Type directory path:')
		for root, dirs, files in os.walk(directorypath):
			level = root.replace(directorypath, '').count(os.sep)
			indent = ' ' * 4 * (level)
			print('{}{}/'.format(indent, os.path.basename(root)))
			subindent = ' ' * 4 * (level + 1)
			for f in files:
				print('{}{}'.format(subindent, f))
 
 
def main():
	tiles = FindTiles()
	tiles.findTiles()
 
if __name__ == '__main__':
	main()