def getDir(originFile: str):
    """ Simple function that returns the directory a file is in. Essentially just cuts the filename from the input.

        :param originFile:  Path to a file.

        :return:            Path to the directory of the file including the dir-indicating slash at the end.

            note::  Author(s): Mitch """

    return originFile[:originFile.rfind('/') + 1]