title: IOError [Errno 13] when using numpy.loadtext?
body: <p>I have a function that polls a folder for new files, then loads them using numpy.loadtext when it shows up. The function is called from a while loop that runs for 30 seconds. The function works properly most of the time, but for some files, seemingly at random, I get the error IOError: [Errno 13] Permission denied: 'myfilename1.txt'. Here is the content of my function:</p>
  
  <pre><code>before = dict([(f, None) for f in os.listdir(mydir)])
  while 1:
      after = dict([(f, None) for f in os.listdir(mydir)])
      added = [f for f in after if f not in before]
  
      # New File
      if added:
          raw = numpy.loadtxt(mydir + added[0])
  
          return raw
  </code></pre>
  
  <p>Any idea on why this is happening? It properly polls and reads most text files that are incoming, but sometimes spits the error and I can't find a systematic reason why.</p>
  
  <p>UPDATE:</p>
  
  <p>Has something to do with using the full path with loadtxt. When I change the working directory to the directory where the files are, I no longer get the permissions error.</p>