Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103367
| From | Cameron Simpson <cs@zip.com.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Make a unique filesystem path, without creating the file |
| Date | 2016-02-23 09:25 +1100 |
| Message-ID | <mailman.50.1456180971.20994.python-list@python.org> (permalink) |
| References | <56CB4F60.4010201@stoneleaf.us> |
On 22Feb2016 10:11, Ethan Furman <ethan@stoneleaf.us> wrote: >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. I think Ben wants to avoid filesystem modification (let us ignore atime here). So one can read the filesystem to see what is current, but he does not want to actually make any new filesystem entry. Cheers, Cameron Simpson <cs@zip.com.au>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Make a unique filesystem path, without creating the file Cameron Simpson <cs@zip.com.au> - 2016-02-23 09:25 +1100
csiph-web