Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93132
| References | <mailman.44.1435219506.3674.python-list@python.org> <558bc6f1$0$11104$c3e8da3@news.astraweb.com> <CAPTjJmqOK63ifOPJXio4s25J6buxuoFFamFgZrMzpWJDGKSV1A@mail.gmail.com> <558BD386.8030207@timgolden.me.uk> |
|---|---|
| Date | 2015-06-25 20:23 +1000 |
| Subject | Re: windows and file names > 256 bytes |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.57.1435227798.3674.python-list@python.org> (permalink) |
On Thu, Jun 25, 2015 at 8:10 PM, Tim Golden <mail@timgolden.me.uk> wrote: >> Are there any times when you *don't* want Windows to use the >> extended-length path? > > Yes: when you're passing a relative filepath. Which could pretty much be > any time. As you might imagine, this has come up before -- there's an > issue on the tracker for it somewhere. I just don't think it's simple > enough for Python to know when and when not to use the extended path > syntax without danger of breaking something. Oh blah. So I suppose that means there's fundamentally no way to use a long (>256 byte) relative path on Windows? > Bear in mind that the \\?\ prefix doesn't just extend the length: it > also allows otherwise special-cased characters such as "." or "..". It's > a general-purpose mechanism for handing something straight to the file > system without parsing it first. Ohh. So... hmm. So what this really means is that a path could get \\?\ prepended when, and ONLY when, it becomes absolute. Windows can be a real pest... ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
windows and file names > 256 bytes Albert-Jan Roskam <sjeik_appie@hotmail.com> - 2015-06-25 08:00 +0000
Re: windows and file names > 256 bytes Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-06-25 19:16 +1000
Re: windows and file names > 256 bytes Chris Angelico <rosuav@gmail.com> - 2015-06-25 19:23 +1000
Re: windows and file names > 256 bytes Tim Golden <mail@timgolden.me.uk> - 2015-06-25 11:10 +0100
Re: windows and file names > 256 bytes Chris Angelico <rosuav@gmail.com> - 2015-06-25 20:23 +1000
Re: windows and file names > 256 bytes Terry Reedy <tjreedy@udel.edu> - 2015-06-25 13:03 -0400
csiph-web