[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2235: Error from 'tahoe cp' on Windows, possibly due to a long path (IOError: Errno2 - no such file or dir.)

Tahoe-LAFS trac at tahoe-lafs.org
Wed Apr 30 00:37:08 UTC 2014


#2235: Error from 'tahoe cp' on Windows, possibly due to a long path (IOError:
Errno2 - no such file or dir.)
--------------------------------+------------------------------------------
     Reporter:  CyberAxe        |      Owner:  daira
         Type:  defect          |     Status:  new
     Priority:  normal          |  Milestone:  undecided
    Component:  code-frontend-  |    Version:  1.10.0
  cli                           |   Keywords:  tahoe-cp error windows win32
   Resolution:                  |
Launchpad Bug:                  |
--------------------------------+------------------------------------------

Comment (by zooko):

 Replying to [comment:3 daira]:
 > [http://bugs.python.org/issue18199]. This will not be fixed in Python
 2.x, so the only way for us to work around it is either to:
 > a. chdir to each subdirectory in turn using relative paths (this changes
 the limitation to 255 characters per directory component);
 > b. on Windows, call the Win32 API functions with the "`\\?\`" prefix
 directly via `ctypes` or similar.

 Why can't we just prepend "`\\?\`" to the string before we pass it to
 {{{open()}}} on line 274 of
 [source:trunk/src/allmydata/util/fileutil.py?rev=ff64a0fef5879d3651bc3db6ca0522d96b217d45
 fileutil.py]?

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2235#comment:4>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list