>- see footer for list info -<
Declaration looks OK to me (or reasonable at least).
<cfftp connection="Myftp"
>   action="existsDir"
>   directory="D:/docs/"
>   stoponerror="yes">
 
How do you know it is not working ? Are you using cfftp.returnValue to get
your result ?? 
================
RTFM returns: 
The cfftp.returnValue variable provides the return value for these actions:
*              getCurrentDir 
*              getCurrentURL 
*              existsDir 
*              existsFile 
*              exists 
For more information, see the ColdFusion Developer's Guide.
Action (cfftp.ReturnValue variable)
The results of an action determine the value of the returnValue variable, as
the following table shows:

cfftp action
Value of cfftp.returnValue

getCurrentDir
String. Current directory.

getCurrentURL
String. Current URL.

existsDir
yes or no.

existsFile
yes or no.

exists
yes or no.
 
================
 
So, after the function returns, what does <cfdump var="#cfftp#"> return ?
Is cfftp.returnValue not set to 'yes' or 'no' as indicated above ?
 
By the way, I hope you realise that 'existsDir' function will only likely
return folders that are contained within the ftp shared folder area, not
from just anywhere on the physical server file system.
e.g.  you can get at and see stuff from within d:\inetpub\ftproot
On the other hand if there exists on the server d:\inetpub\ftproot\docs then
I'd expect to be able to get at '\docs' via the 'existsDir' action of cfftp
tag.
 
So, unless you are sharing d:\ on the ftp server I would not expect to be
able to get at d:\docs and am not really surprised you have no results.
 
Finally, I suggest that you experiment with '\' instead of '/' as I've found
that different FTP servers handle this in distinct ways depending on their
OS. (e.g. Win versus Linux).   Your slashes lean the wrong way by my
estimation (but I've not worked with cfftp for a while to be sure).
 
Cheers,
Bryn
===========================
In Regards:
 
> 
> Hi Guys,
>   I tried to use CFFTP function and ExistsDir as action. Problem now I
> dont know how to declare the directory. I tried to use D:\folder name, but
> it getting NO result. Any advise from all of u?
> Here My code : -
> <cfftp connection="Myftp"
>  server="149.111.11.11"
>  username="test"
>  password="test"
>  action="Open"
>  stoponerror="Yes">
>   <cfftp connection=Myftp
>   action="existsdir"
>   directory="D:/docs/"
>   stoponerror="yes">
> 
>   If I put directory="/" its working but its not point to directory that I
> need. I need to check whether folder D:/docs/ exist or not..in side that
> server.
> 
>   Please Advise
> 
>   Thanks in advance
> 
> Regards,
> Shaffiq
> 
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to