Make a unique filesystem path, without creating the file
Rick Johnson
rantingrickjohnson at gmail.com
Mon Feb 15 21:26:01 EST 2016
On Sunday, February 14, 2016 at 10:55:11 PM UTC-6, Steven D'Aprano wrote:
> If you want to guarantee that these faux pathnames can't
> leak out of your test suite and touch the file system,
> prepend an ASCII NUL to them. That will make it an illegal
> path on all file systems that I'm aware of.
Hmm, the unfounded fears in this thread are beginning to
remind me of a famous Black Sabbath song.
Finished with "py tempfile",
'cause it,
couldn't help to,
ease my mind.
People think i'm insane,
because,
i want "faux paths",
all the time.
All day long i think of ways,
but nothing seems to,
satisfy.
Think i'll loose my mind,
if i don't,
find a py-module to,
pacify.
CAN YOU HELP ME?
MAKE "FAUX PATHS" TODAAAAY,
OH YEAH...
More information about the Python-list
mailing list