SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
CompareFTPDir (release 2)

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
CompareFTPDir (release 2)
Author Message
Mauricio Padilla



Joined: 30 Apr 2002
Posts: 16

Post CompareFTPDir (release 2) Reply with quote

Thank you!

The other part worked.

A second issue:

Inside the directory I have subdirectories. It seems the current JAL command doesn't compare the subdirectories (recursively). Is this something that will be included in a future version?

I will need to work in some workaround for this, since we have tons of subdirectories we need to compare.



Wed May 01, 2002 3:45 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: CompareFTPDir (release 2) Reply with quote

CompareFTPDir is not recursive because the result includes comman-separated file list without path.

Did you check SyncFTPDir statement? That statement is recursive.

As a workaround for non-recursive CompareFTPDir you can create some script in 24x7 that will recursively check subdirectories. To get names of subdirectories you can use FileFindFirst and FileFindNext with isDir to obtain names of subdirectories from the local drive. Please see isDir topic and example script in the on-line help file.

To implement the recursion create this script as a user defined statement in the ScriptLibrary with 2 parameters for directory names. The statement can be scripted the way it recursively calls itself for found subdirectories.

: Thank you!

: The other part worked.

: A second issue: Inside the directory I have subdirectories. It seems the
: current JAL command doesn't compare the subdirectories (recursively). Is
: this something that will be included in a future version?

: I will need to work in some workaround for this, since we have tons of
: subdirectories we need to compare.

Wed May 01, 2002 4:22 pm View user's profile Send private message
wayne skillin



Joined: 01 May 2002
Posts: 1

Post Re: CompareFTPDir (release 2) Reply with quote

: CompareFTPDir is not recursive because the result includes comman-separated
: file list without path.

: Did you check SyncFTPDir statement? That statement is recursive.

: As a workaround for non-recursive CompareFTPDir you can create some script in
: 24x7 that will recursively check subdirectories. To get names of
: subdirectories you can use FileFindFirst and FileFindNext with isDir to
: obtain names of subdirectories from the local drive. Please see isDir
: topic and example script in the on-line help file.

: To implement the recursion create this script as a user defined statement in
: the ScriptLibrary with 2 parameters for directory names. The statement can
: be scripted the way it recursively calls itself for found subdirectories.

Wed May 01, 2002 11:55 pm 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.