title: Python IOError: [Errno 22] Invalid argument when python code is located on a server
body: <p>client configuration windows 7 enterprise, Python 2.7.3</p>
  
  <p>I try to launch from a W7 client a Python program located on a server, but I get the following message when 20 files (total size = 3GB) are copied from the client to the server :</p>
  
  <pre><code>Traceback (most recent call last):
  
  File "\\filler\PROJECTS\server\python\LIB\util.py", line 101, in __pepareFiles
      shutil.copyfile(self.sFileIn,self.sTmpFileIn)
  
  File "C:\Progra~1\Python27\lib\shutil.py", line 84, in copyfile
      copyfileobj(fsrc, fdst)
  
  File "C:\Progra~1\Python27\lib\shutil.py", line 49, in copyfileobj
      buf = fsrc.read(length)
  
  IOError: [Errno 22] Invalid argument
  </code></pre>
  
  <p>This message appears randomly when I copy the files.</p>
  
  <p>Do you know if there is a solution to avoid this error message when the code to execute is located on a server in the same directory as the data? </p>
  
  <p>I have found a solution: Execute all the Python code on the C: drive and no more from the server:</p>
  
  <p><code>C:\PROJECTS\python\LIB\util.py</code></p>
  
  <p>instead of</p>
  
  <p><code>\\filler\PROJECTS\server\python\LIB\util.py</code></p>
  
  <p>I do not get any errors now. </p>