[tahoe-lafs-trac-stream] [tahoe-lafs] #1472: buildbot is unable to delete directories under _trial_temp* that have non-ASCII names under Windows
tahoe-lafs
trac at tahoe-lafs.org
Tue Nov 22 12:28:45 UTC 2011
#1472: buildbot is unable to delete directories under _trial_temp* that have non-
ASCII names under Windows
------------------------------------+--------------------------------------
Reporter: davidsarah | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: eventually
Component: dev-infrastructure | Version: 1.8.2
Resolution: | Keywords: buildbot unicode windows
Launchpad Bug: |
------------------------------------+--------------------------------------
Comment (by zooko):
Replying to [comment:21 davidsarah]:
> Replying to [comment:20 zooko]:
> > FWIW, there is a class in {{{fileutil.py}}} that does something
similar: [source:src/allmydata/util/fileutil.py at 4957#L90].
>
> {{{NamedTemporaryDirectory}}} deletes the directory tree when the
{{{NamedTemporaryDirectory}}} object is {{{__del__}}}'d, which is the
wrong time.
For future reference, you can also invoke the
{{{NamedTemporaryDirectory}}} object's {{{shutdown}}} method at a specific
time if desired.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1472#comment:22>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list