In general, there's no need to lock cfdirectory, unless you're creating, deleting or renaming. As for the name of the lock, just make sure it's unique for that particular operation. That is, if you're using cfdirectory in a couple different places that access the same directory structure, I would create a lock with the same name. This ensures that two people can't create, delete or rename the same directory at the same time.
As for directoryexists() and fileexists(), I don't see a need for locking those. I lock cffile, especially when I'm writing or appending to a file. You wouldn't want two people writing or appending to the same file at the same time - thus the need for locking. HTH, Mark -----Original Message----- From: Bryan Love [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 6:29 PM To: CF-Talk Subject: File Locking? I've heard mention of CFLOCKing CFFILE tags on a few occasions now... This is news to me, so I have a few questions... - should the NAME of the lock be the full path of the file? - if CFFILE needs locking, how about CFDIRECTORY? - should I also lock any calls to the DIRECTORYEXISTS() and FILEEXISTS() functions? Any help would be appreciated :) +-----------------------------------------------+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst Telecommunication Systems [EMAIL PROTECTED] +-----------------------------------------------+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis -----Original Message----- From: Mark Stewart [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 2:54 PM To: CF-Talk Subject: Linux & CF 5 Enterprise (Eval) Does anybody know if the eval version of CF5 on Linux is full-featured? That is, are there any features that are not available in an evaluation version? We're trying to test out a server with CF5 Enterprise for Linux and we get the following error: Error Diagnostic Information Cannot lock session scope CFLock cannot be used to lock the application or session shared scopes without these scopes being established through the use of the CFApplication tag. You must use CFApplication and specify an application name to use the application scope. If you want to use the session scope you need to enable session management as well. Application and/or Session variables must also be enabled in the ColdFusion Administrator. Yes, we have a cfapplication tag and session management is on and application/session variables are enabled in cf admin. This site is currently working on Win2K, CF5 Pro and we just moved the directory over to the Linux box. Any ideas? Mark ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

