NAME

Net::FTPTurboSync - Perl extension for turbo-ftp-sync script

SYNOPSIS

DESCRIPTION

Blah blah blah.

EXPORT

None by default.

buildlocaltree()
class - name of this module

It build two hashes of all directories and all files including nested and returns an array of hash references to them, respectively. Hashes' key is a relative path to file or folder from current folder.

buildremotetree($ftp,$dbh)
class - name of this module

ftp   - object Net::FTPTurboSync::MyFtp

dbh   - database handle which is returned from DBI->connect(...)

The method returns an array with two elements. First is a hash ref of directories found in current folder on FTP server. Second is a hash ref o files found in current folder on FTP server. A hask key of both hashes is an absolute path. A hash value of first hash is RemoteDir object and a second one is RemoteFile object.

The method gets data from the database object rather than ftp. Ftp object is passed for futher using.

fillDb($dbh,$ldir,$lfiles)
 class - name of this module

 dbh   - database handle object

 ldir  - a hash ref of directories to be written in db

 lfiles - a hash ref of files to be written in db

AUTHOR

Daneel S. Yaitskov, <rtfm.rtfm.rtfm@gmail.com>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Daneel

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.