title: How to move a file specified in text file based on condition using Python
body: <p>I have a text file as below.</p>
  
  <pre><code>4b64dac0d3b4592143368e6c2d676039165b6159  Detections: -1
  0e00854b6b9e431ce1fe56b9bcebdb6b8f088012  Detections: 0
  1c1fc6283eb75cc1fd2885a81d43843009ebba77  Detections: 14
  2e19a1b2e451e799b2feaba39148cfd2740de8e2  Detections: 5
  3a0761b29c55135122fcdb2ebb72519306ea4b35  Detections: 1
  </code></pre>
  
  <p>And Five files named as mentioned above in one location:</p>
  
  <p>In that, i want to move file to specific folder based on detection Condition.
  The condition are: If detection is greater than Zero means, it move to folder name "found". If detection is lesser and equal to Zero means , it move to folder name "Not found".</p>
  
  <p>Result would be:</p>
  
  <p>In Found folder,</p>
  
  <pre><code>1c1fc6283eb75cc1fd2885a81d43843009ebba77
  2e19a1b2e451e799b2feaba39148cfd2740de8e2
  3a0761b29c55135122fcdb2ebb72519306ea4b35
  </code></pre>
  
  <p>These files will be moved</p>
  
  <p>and In Not Found Folder,</p>
  
  <pre><code>4b64dac0d3b4592143368e6c2d676039165b6159
  0e00854b6b9e431ce1fe56b9bcebdb6b8f088012
  </code></pre>
  
  <p>These files will be moved.</p>
  
  <p>Can anyone could help me through done this?</p>
  
  <p>i have tried like:</p>
  
  <pre><code>with open('D:\SHARE\Check\check.txt') as infile:
    for line in infile:
      if condition:
        Detections: 0
        next(infile)
  </code></pre>
  
  <p>I don't know how to check condition and move file based on that</p>