Python creates "locked" temp dir

Alex Willmer alex at moreati.org.uk
Wed Dec 8 04:31:49 EST 2010


On Dec 7, 9:03 pm, utabintarbo <utabinta... at gmail.com> wrote:
> I am using tempfile.mkdtemp() to create a working directory on a
> remote *nix system through a Samba share. When I use this on a Windows
> box, it works, and I have full access to the created dir. When used on
> a Linux box (through the same Samba share), the created directory
> shows as "locked", and I am unable to access. Obviously, I need
> access. Any clues?

You haven't provided enough details to go on.
1. Please post the actual code, and the trace back (if any).
2. When you say "I am unable to access". Do you mean another script/
process is unable to access? If so, that is the point of mkdtemp() -
to make a temporary directory that _only_ the creating process can
access. If you want to share it then tempfile is not the right module
for you.

Regards, Alex



More information about the Python-list mailing list