|
From: | Scott Hannahs |
Subject: | Re: [Duplicity-talk] Failure running tests. |
Date: | Fri, 20 Sep 2019 18:20:54 -0400 |
Ken, Ahh… That make sense. Not a python person, but the C routines should give a user temporary directory with better permissions. See the man page for “confstr” and the variable “_CS_DARWIN_USER_TEMP_DIR” This allows creation of temporary files and directories with read/write and correct group permissions. These are in the /private/var/folders hierarchy. The shell has also a utility (getconf) to get a user writeable folder using that method:
This also has the added facility for automatic cleanup. I think if space gets low this area is purged after 3 days? But I try not to rely on that. I am not sure if this is POSIX or BSD routine, but it might be a standard solution. -Scott
|
[Prev in Thread] | Current Thread | [Next in Thread] |