Monday 30 July 2018

Where is the best place to store a temporary file, that I need a consistent path for across all platforms (windows, mac, linux)?

So, I'm using node for a program that syncs your clipboard to a docker container's clipboard, and I need to create a file that is in the same location so that it can be shared in a docker bind mount, whether I'm on windows, mac, or linux. So, naturally, the file needs to have the same path on all those platforms. The file doesn't have to be persistent on starting or restarting though, as all it does is share a clipboard between the host and container. Any suggestions?

Submitted July 30, 2018 at 06:33PM by zwhitchcox

No comments:

Post a Comment