mario kulka wrote:
> Before I upload a file with a random name I would like to make sure
> that another file with the same name doesn't already exist. Is there
> a way to look for a specific $name file within a directory (on UNIX).

Be aware that algorithms using -e or similar to check for the existence of a
file contain a race condition. The file may be created between the call
to -e and the call to open().

For maximum safety, use the File::Temp module.




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to