classification
Title: Library glob : Can't find a specific year with glob
Type: Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Robin Champavier
Priority: normal Keywords:

Created on 2018-05-04 10:14 by Robin Champavier, last changed 2018-05-04 11:05 by Robin Champavier. This issue is now closed.

Files
File name Uploaded Description Edit
Tri_fichier_texte.py Robin Champavier, 2018-05-04 10:14
Messages (1)
msg316163 - (view) Author: Robin Champavier (Robin Champavier) Date: 2018-05-04 10:14
Hello,

I work with file name like : PRECI_yyyymmddhh_00.txt and I put them in different directory depending of the year. For file between year 1999 and 2016 there is no problem but with file in year 2017 with months 12, glob.glob can't find them. When I do print K in my file Tri_fichier_texte.py there is no file with PRECI_201712xxxx.txt but it works to find the beginning of the year 2017 like PRECI_201701xxx.txt. All file get exactly the same syntax. 

Thanks for looking my issues.
History
Date User Action Args
2018-05-04 11:05:18Robin Champaviersetstatus: open -> closed
stage: resolved
2018-05-04 10:14:47Robin Champaviercreate