A primitive to create a temporary directory?
Hi, is there a primitive to create a temporary directory without any race condition issue? Best -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
On 29 May 2013 15:04, Damien Cassou <damien.cassou@gmail.com> wrote:
Hi,
is there a primitive to create a temporary directory without any race condition issue?
i don't think so
Best
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
-- Best regards, Igor Stasenko.
On Thu, May 30, 2013 at 08:52:37PM +0200, Igor Stasenko wrote:
On 29 May 2013 15:04, Damien Cassou <damien.cassou@gmail.com> wrote:
Hi,
is there a primitive to create a temporary directory without any race condition issue?
i don't think so
Damien: I added the primitives to OSProcessPlugin and OSProcess. OSProcess support code is in the latest OSProcess on SqueakSource: UnixOSProcessAccessor>>mktemp: templateString UnixOSProcessAccessor>>mksemp: templateString UnixOSProcessAccessor>>mkdtemp: templateString To make a temporary directory without any race condition issue: "OSProcess accessor mkdtemp: 'foodir.XXXXXX' " Igor: The primitives are in SqueakSource VMConstruction-Plugins-OSProcessPlugin-dtl.38. You can use this with Cog (I try to keep up to date with Eliot's changes). UnixOSProcessPlugin>>primitiveMktemp UnixOSProcessPlugin>>primitiveMkstemp UnixOSProcessPlugin>>primitiveMkdtemp Dave
On Tue, Jun 4, 2013 at 5:32 AM, David T. Lewis <lewis@mail.msen.com> wrote:
I added the primitives to OSProcessPlugin and OSProcess. OSProcess support code is in the latest OSProcess on SqueakSource:
thank you so much David. Is it available for other OSes too? Best -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
participants (3)
-
Damien Cassou -
David T. Lewis -
Igor Stasenko