directory for export. Filename is generated automatically.&#39;)
            return
        outdir = outdir.as_posix()
    else:
        outdir.replace(&#39;\\&#39;,&#39;/&#39;)
        outdir.replace(&#39;\\&#39;[-1], &#39;/&#39;)

    #Get directory path correct        
    if outdir[-1] != &#39;/&#39;:
        outdir = outdir+&#39;/&#39;

    todayDate = datetime.date.today()
    todayDateStr = str(todayDate)
    searchDF = df[df[&#39;CLASS_FLAG&#39;].isna()]
    
    stillNeededDF=searchDF[&#39;FORMATIO