* "Steven Satelle (Service Desk)" <[EMAIL PROTECTED]> [2004:04:29:08:47:24+0100] 
scribed:
> Hi, I have a question on DirSync. The docs aren't to clear (at least to me).
> I'm using it to sync a few folders across 3 different sites and want it to
> tell me what files is synced each time, via a text file or logged to a db.
> Also any errors to somewhere else (maybe mail me). The docs mention:
> entries_updated()
> entries_removed()
> entries_skipped()
> entries_failed()
> But I don't know how to get the data from these. I tried in the set-up for a
> new DirSync to assign an array to the entries_updated but that didn't work.
> How do I get the data?

Assuming that you declare your object like this:

    my $dirsync = new File::DirSync;

Then, this is what I do:

    push @failed, $dirsync->entries_failed()
                if $dirsync->entries_failed();

Since my program may dirsync several different pairs of directories, I
have elected to consolidate all of this data into one (1) array.  When I
am done, then I do this:

    for (@failed) {
            print "\tFAILED: $_\n";
    }

Since $dirsync->entries_failed() returns an array, then you could do
this:

    my @failed = $dirsync->entries_failed();

hth

-- 
Best Regards,

mds
mds resource
877.596.8237
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know.  The more I know, the more I know I don't know . . .
--

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to