Make a unique filesystem path, without creating the file

Ethan Furman ethan at
Mon Feb 22 13:11:44 EST 2016

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.


More information about the Python-list mailing list