I am trying to teach myself how to make classes in Python. I am currently able to write a class that enables me to draw multiple shapes using the same class which is pretty basic.
I am having trouble with more advanced tasks using classes, for instance I would like to be able to make a class which includes functions such as how many files are in a particular directory.
I guess my question is How would I make a class that reads into a directory and tell me how many files are in the directory?
Thanks, sorry if it isnt clear