in reply to What's the best way to avoid name collisions when creating files?
There is always file locking with something like flock...
And I believe you can also use sysopen to create files if they aren't there and error if they are, but not 100% sure on that... something with O_CREAT and O_EXCL maybe...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What's the best way to avoid name collisions when creating files?
by bmann (Priest) on May 02, 2005 at 20:31 UTC | |
|
Re^2: What's the best way to avoid name collisions when creating files?
by osunderdog (Deacon) on May 02, 2005 at 21:11 UTC | |
|
Re^2: What's the best way to avoid name collisions when creating files?
by doom (Deacon) on May 03, 2005 at 21:20 UTC |