I am making my own file manager for linux, hopefully it will be cross platform, and I am trying to identify different file types, in particular folders.

I have already searched google but I could only find a way of identifying text files.
Does anyone have any advice on identifying file types?

thanks, that helps a lot, I actually looked through the os module, I completely forgot about the os.path module

filerz = "c:\\cookie\\win\\etc\\beeeeeeepyyrasdf.doom"

def filetype(file):
    return file.split(".")[-1]

print filetype(filerz)

>> doom

For a more general solution try python-magic.
It is a wrapper for libmagic.