SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Checking existence directory on FTP server

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Checking existence directory on FTP server
Author Message
Robbert de GROOT



Joined: 13 Dec 2000
Posts: 53

Post Checking existence directory on FTP server Reply with quote

I'm using v3.3.4 of 24x7 scheduler.
Is there a way to check if a directory
on a FTP server exists ? Can DirFTP handle this ?
How to difer files and directories ?

Robbert

Tue Jan 07, 2003 9:29 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Checking existence directory on FTP server Reply with quote

To check FTP dir you can use the following method

Dim dir_exists, boolean
OnErrorGoTo NO_DIR
FTPDir ....
Set dir_exists, True
GoTo DIR_LOGIC

NO_DIR:
Set dir_exists, False

DIR_LOGIC:
OnErrorStop
... your processing logic here

There is no clear way to handle files and directories because FTP protocol does not provide such support. You can use FTPFileExists to verify file status. It should fail for directories and succeed for valid files.

: I'm using v3.3.4 of 24x7 scheduler.
: Is there a way to check if a directory
: on a FTP server exists ? Can DirFTP handle this ?
: How to difer files and directories ?

: Robbert

Tue Jan 07, 2003 10:08 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.