Make a unique filesystem path, without creating the file
Roel Schroeven
roel at roelschroeven.net
Mon Feb 15 17:22:47 EST 2016
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
More information about the Python-list
mailing list