𝗡𝗼𝗱𝗲𝗷𝘀 provides an awesome method that lets you create unique temporary directories.
This is really useful when you need to store some data temporarily then delete them later.
𝗡𝗼𝗱𝗲𝗷𝘀 helps you further, by concatenating 6 unique characters to the 𝗽𝗿𝗲𝗳𝗶𝘅 you pick. This results in creating unique directories every single time without worrying about collisions.
Library authors will benefit of this tip as well of course.
Just make sure to avoid trailing 𝗫 characters in the 𝗽𝗿𝗲𝗳𝗶𝘅, due to some platform inconsistencies.
Did you learn something new today?
Like and share this post, and follow me for more!