title: Python read text file based on partial name and file timestamp
body: <p>I'm trying to pull two of the same files into python in different dataframes, with the end goal of comparing what was added in the new file and removed from the old. So far, I've got code that looks like this:</p>
  
  <pre><code>In[1] path = r'\\Documents\FileList'
        files = os.listdir(path)
  
  In[2] files_txt = [f for f in files if f[-3:] == 'txt']
  
  In[3] for f in files_txt:
            data = pd.read_excel(path + r'\\' + f)
            df = df.append(data)
  </code></pre>
  
  <p>I've also set a variable to equal the current date minus a certain number of days, which I want to use to pull the file that has a date equal to that variable:</p>
  
  <pre><code>d7 = dt.datetime.today() - timedelta(7)
  </code></pre>
  
  <p>As of now, I'm unsure of how to do this, as the first part of the filename always remains the same but they add numbers at the end (eg. file_03232016 then file_03302016). I want to parse through the directory for the beginning part of the filename and add it to a dataframe if it matches the date parameter I set.</p>
  
  <p>EDIT: I forgot to add that sometimes I also need to look at the system date created timestamp, as the text date in the file name isn't always there.</p>