I am writing a program that utilises a large number of files. Does Python feature an inbuilt class for file paths, or does one have to be implemented by the user (like below):
def shazam(self, path):
""" something happens, path is formatted, etc """
self.formatted_path = foobar
os.path.join() is OS-aware and will use the correct separator when joining paths together.
os.path.normpath() will take any path and convert the separators to whatever the native OS supports.