set up a randomly-named “spill directory.”
Using a directory name instead of a prefix is a good notion.
mkdir returns false if the directory already exists and is atomic. Problem is, how do you distinguish between failure to create because it exists, and failure to create for some other reason? Eg. permissions.
In reply to Re^2: Generate a unique ID
by BrowserUk
in thread Generate a unique ID
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |