title: Python - Large File Name RENAME ERROR (Win Error 3)
body: <p>I am getting the following error in "python" when I try  <code>os.rename</code> in Windows, Python 3 (spyder).</p>
  
  <pre><code>os.rename('123456789012345678901234567890123456.jpg', '1234567890123456789012345678901234567.jpg')
  </code></pre>
  
  <blockquote>
    <p>FileNotFoundError: [WinError 3] The system cannot find the path
    specified: '123456789012345678901234567890123456.jpg' ->
    '1234567890123456789012345678901234567.jpg'</p>
  </blockquote>
  
  <p>The file name above got 36 characters.</p>
  
  <p>When I try with 35 character filename then I am NOT getting the error and rename works fine.</p>
  
  <pre><code>os.rename('12345678901234567890123456789012345.jpg', '123456789012345678901234567890123456.jpg')
  </code></pre>
  
  <p>I've also tried with FULL path C:....\filename in the source and target file for rename but it works with the file name till 35 characters (full path it has got 254 characters including file name).  When I try with 255 characters (ie., full path including file name with 36 characters), then I am getting Win Error 3. If the file doesn't exists (really), then I got Win Error 2.<br>
  I am looking for a generic solution so that I can apply this for all large file named files. </p>