Hi I have the following code that works correctly. However, every once in a while there is a file name that has an "06" instead of an "05" and it breaks the script. Is there a way I can use a wild card for that digit?
fileName <SPAN class="operator token">=</SPAN> os<SPAN class="punctuation token">.</SPAN>path<SPAN class="punctuation token">.</SPAN>split<SPAN class="punctuation token">(</SPAN>fullFileName<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="operator token">-</SPAN><SPAN class="number token">1</SPAN><SPAN class="punctuation token">]</SPAN>
fileNameShort <SPAN class="operator token">=</SPAN> fileName<SPAN class="punctuation token">[</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="operator token">-</SPAN><SPAN class="number token">13</SPAN><SPAN class="punctuation token">]</SPAN>
fileDateTime <SPAN class="operator token">=</SPAN> dt<SPAN class="punctuation token">.</SPAN>strptime<SPAN class="punctuation token">(</SPAN>fileName<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"%m%d%Y_%H05shapefile.zip"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>