Hi,<br><br>Currently I have the following code:<br><br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ignored_dirs = (</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> r".\boost\include"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> )</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">if __name__ == "__main__":</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> # Walk the directory tree rooted at 'source'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> for root, dirs, files in os.walk( source ):</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> if root not in ignored_dirs:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> CopyFiles( root, files, ".dll" )</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> else:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> print root</span><br><br><br>Specifically take a look at the if condition checking if a string is inside of ignored_dirs. Of course this will only do substring searches, however I want to perform an exact match on this string. Is there anyway of doing this? Thanks.<br>