Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93203 > unrolled thread

Re: windows and file names > 256 bytes

Started byAlbert-Jan Roskam <sjeik_appie@hotmail.com>
First post2015-06-26 17:58 +0000
Last post2015-06-26 17:58 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: windows and file names > 256 bytes Albert-Jan Roskam <sjeik_appie@hotmail.com> - 2015-06-26 17:58 +0000

#93203 — Re: windows and file names > 256 bytes

FromAlbert-Jan Roskam <sjeik_appie@hotmail.com>
Date2015-06-26 17:58 +0000
SubjectRe: windows and file names > 256 bytes
Message-ID<mailman.110.1435341547.3674.python-list@python.org>
<snip> 

> import os import shutil import sys
>  
> # create an insanely long directory tree p = os.getenv("TEMP")
> #p = ur"\\server\share\blah\temp"
> tmpdir = p os.chdir(tmpdir)
> for i in xrange(1000):
>     tmpdir = os.path.join(tmpdir, "sub") os.mkdir("\\\\?\\" + tmpdir)
>     #os.mkdir(u"\\\\?\\UNC" + tmpdir[1:])
>  
> # write a file to it deep = "\\\\?\\" + os.path.join(tmpdir, "deep.txt")
> assert os.path.exists(deep)

sorry, this "assert" should of course follow 'with open(..' 

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web