def get_directory(self):
        """Returns the directory in which the :class:`FileSet` will be run.

        If the directory was set with None in the constructor, get_directory()
        will return the current working directory.

        The returned result is normalized so it never contains a trailing
        path separator"""
        directory = self.directory if self.directory else os.getcwd()
        drive, folders = get_path_components(directory)
        return reconstitute_path(drive, folders)