NAME

Sorauta::Device::USB::Synchronizer - supervising universal serial bus and synchronized selected directories

SYNOPSIS

  use Sorauta::Device::USB::Synchronizer;

  my $TARGET_DIR_PATH = '/Users/user/Desktop/test_usb_synchronizer';
  my $SYNCHRONIZED_DIR_LIST = ["hoge", "fuga"];
  my $OS = 'Mac';
  my $INTERVAL_TIME = 0;
  my $ALLOW_OVERRIDE_FILE = 0;
  my $DEBUG = 1;
  my $CONNECTED_EVENT_REF = sub {
    my($self, $driver_path) = @_;
    print "connected!!";
  };
  my $UPDATED_EVENT_REF = sub {
    my $self = shift;
    print "updated!!";
  };

  Sorauta::Device::USB::Synchronizer->new({
    target_dir_path       => $TARGET_DIR_PATH,
    synchronized_dir_list => $SYNCHRONIZED_DIR_LIST,
    os                    => $OS,
    interval_time         => $INTERVAL_TIME,
    allow_override_file   => $ALLOW_OVERRIDE_FILE,
    debug                 => $DEBUG,
    connected_event_ref   => $CONNECTED_EVENT_REF,
    updated_event_ref     => $UPDATED_EVENT_REF,
  })->execute;

DESCRIPTION

supervising universal serial bus and synchronized selected directories

EXPORT

None by default.

SEE ALSO

Mention other useful documentation such as the documentation of related modules or operating system documentation (such as man pages in UNIX), or any relevant external documentation such as RFCs or standards.

If you have a mailing list set up for your module, mention it here.

If you have a web site set up for your module, mention it here.

AUTHOR

Yuki ANAI, <yuki@apple.com>

COPYRIGHT AND LICENSE

Copyright (C) 2012 by Yuki ANAI

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