title: In scikit-learn, the load_files function is reading in unwanted text files
body: <p>I am using the <code>load_files</code> function in sci-kit learn to load 2 simple text documents.</p>
  
  <p>The set up is painfully simple. My files are named <code>file1</code> and <code>file2</code>.
  The first file consists of the text <code>pig cow chicken</code>, whereas the second file consists of the the text <code>pig car truck</code>.</p>
  
  <p>They both reside here:</p>
  
  <pre><code>/home/me/Dropbox/test
  </code></pre>
  
  <p>So far so good.</p>
  
  <p>Now, I use the <code>load_files</code> function, as such,</p>
  
  <pre><code>text_data = load_files('/home/me/Dropbox/test', encoding='latin-1')
  </code></pre>
  
  <p>Next, I examine<br>
  <code>text_data.filenames</code><br>
  ...and it turns out I'm getting some weird extra files!</p>
  
  <pre><code>[ '/home/me/Dropbox/test/folder1/document2.txt'
    '/home/me/Dropbox/test/folder1/document2.txt~'
    '/home/me/Dropbox/test/folder1/document1.txt~'
    '/home/me/Dropbox/test/folder1/document1.txt']
  </code></pre>
  
  <p>I check out the<br>
  <code>text_data.data</code><br>
  and get:</p>
  
  <pre><code>[u'pig\ncar\ntruck\n', u'', u'', u'pig\ncow\nchicken\n']
  </code></pre>
  
  <p>I assume there is something going on here with hidden files, or temp files, or something of those sorts.  Neither of my files are open.  I've restarted iPython, restarted the laptop, etc.  I use <code>ls -lart</code> and I see them in the directory. </p>
  
  <p>I am using Ubuntu 13.10.</p>
  
  <p>I would like to know a good way to get rid of them, which will solve the problem in this particular instance, but beyond that, I'm wondering why this happened and how I can make sure it doesn't happen again.  What is the mechanism behind these hidden files coming into existence, and why does the function load them?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Thanks!!</p>