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


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

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

Started byBen Finney <ben+python@benfinney.id.au>
First post2016-02-23 09:48 +1100
Last post2016-02-23 09:48 +1100
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 Ben Finney <ben+python@benfinney.id.au> - 2016-02-23 09:48 +1100

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

FromBen Finney <ben+python@benfinney.id.au>
Date2016-02-23 09:48 +1100
SubjectRe: Make a unique filesystem path, without creating the file
Message-ID<mailman.51.1456181351.20994.python-list@python.org>
Ethan Furman <ethan@stoneleaf.us> writes:

> On 02/14/2016 04:08 PM, Ben Finney wrote:
>
> > I am unconcerned with whether there is a real filesystem entry of that
> > name; the goal entails having no filesystem activity for this. I want a
> > valid unique filesystem path, without touching the filesystem.
>
> This is impossible.  If you don't touch the file system you have no
> way to know if the path is unique.

That was unclear. Later in the same thread, I clarified that by “unique”
I mean nothing about entries already on the filesystem. Instead it means
“unpredictably different each time the function is called”.

-- 
 \      “It is difficult to get a man to understand something when his |
  `\   salary depends upon his not understanding it.” —Upton Sinclair, |
_o__)                                                             1935 |
Ben Finney

[toc] | [standalone]


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


csiph-web