Just use CFTRY..CFCATCH to find the directories you can't deal with. If you really need to do it with MODE, you can use CFEXECUTE to run `ls -l` to get what you need. Won't be a nice query like CFDIRECTORY, but its easy enough to convert it.
cheers, barneyb On Tue, 02 Nov 2004 18:29:00 -0400, Tiberius Meszaros <[EMAIL PROTECTED]> wrote: > Hi, would anyone know how to get around the MODE problem return by cfdirectory or > cfftp when listing a directory? I'm working on a a Solaris box, and need to transfer > files from one server to another server. The problem is I'm using a recursive means > to reconstruct the directory tree on the destination server to match the directory > tree of the source server and the only means to do that is to traverse of each > individual directory. This poses a slight problem cause a statement such as > <cfdirectory action="LIST" directory="#attributes.pFROM_DIRECTORY#" > name="pFROM_TREE" sort="Name" > <cfloop index="i" from="1" > to="#pFROM_TREE.RECORDCOUNT#"> <cfif pFROM_TREE.TYPE EQ "Dir" AND > Left(Right(pFROM_TREE.MODE,3),1) EQ 4> <!---- rwxrwxrwx = '421421421' ---> <!--- > traverse tree ---> ... doesn't work, the MODE attribute is empty and I can not test > whether the directory is read only or not. If its read only and i try to traverse > it, it gives me an error msg saying directroy is not readable can anyone give us > some ideas on how to overcome this? cheers > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/blog/ I currently have 0 GMail invites for the taking ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Sams Teach Yourself Regular Expressions in 10 Minutes by Ben Forta http://www.houseoffusion.com/banners/view.cfm?bannerid=40 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183214 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

