title: Check if there are .format files in a directory
body: <p>I have been trying to figure out for a while how to check if there are .pkl files in a given directory. I checked the website and I could find ways to find if there are files in the directory and list them, but I just want to check if they are there. </p>
  
  <p>In my directory are a total of 7 .pkl files, as soon as I create one, the others are created so to check if the seven of them exist, it will be enough to check if one exists. Therefore, I would like to check if there is any .pkl file.</p>
  
  <p>This is working if I do:</p>
  
  <p><code>os.path.exists('folder1/folder2/filename.pkl')</code></p>
  
  <p>But I had to write one of my file names. I would like to do so without searching for a specific file. I also tried </p>
  
  <p><code>os.path.exists('folder1/folder2/*.pkl')</code>, </p>
  
  <p>but it is not working neither as I don't have any file named *.pkl.</p>