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


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

Re: Make a unique filesystem path, without creating the file

Started byRoel Schroeven <roel@roelschroeven.net>
First post2016-02-15 23:22 +0100
Last post2016-02-15 23:22 +0100
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: Make a unique filesystem path, without creating the file Roel Schroeven <roel@roelschroeven.net> - 2016-02-15 23:22 +0100

#102975 — Re: Make a unique filesystem path, without creating the file

FromRoel Schroeven <roel@roelschroeven.net>
Date2016-02-15 23:22 +0100
SubjectRe: Make a unique filesystem path, without creating the file
Message-ID<mailman.148.1455574986.22075.python-list@python.org>
Ben Finney schreef op 2016-02-14 22:46:
> How should a program generate a unique filesystem path and *not* create
> the filesystem entry?
 > ...
> What standard library function should I be using to generate
> ‘tempfile.mktemp’-like unique paths, and *not* ever create a real file
> by that path?

Use uuid.uuid1()?

-- 
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
   -- Isaac Asimov

Roel Schroeven

[toc] | [standalone]


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


csiph-web