title: Python IOError exception when creating a long file
body: <p>I get an IOError shown below when trying to open a new file using "open (fname, 'w+')". The complete error message is below. </p>
  
  <p>The file does not exist, but I verified using "os.access(dir_name, os.W_OK)" and "os.path.exists (dir_name)" that the parent directory for the file does exist. </p>
  
  <p>I am wondering if the file name is just too long for Windows, or if I am doing something wrong. Any tips would be appreciated. Thank you very much.</p>
  
  <p>Error message:</p>
  
  <blockquote>
    <p>IOError: [Errno 2] No such file or directory: 'C:\Documents and
    Settings\Administrator\op_models\Corp_Network_Nov12\abcde_corporate_nov_12.project\abcde_corporate_nov_12-ctr.rptd.dir\ctr\Non
    Business Hours for
    Weeknights\hourly_data_for_2_weeks\1294897740\json.data\Link\0\Link
    Utilization\analyzer393146160-data0.js'</p>
  </blockquote>