hi_sync 0.0.0

  • README.md
  • Example
  • Installing
  • Versions
  • --

hi_sync

A simple library for backup of local files.

Usage

See example.dart.
need packaged : hi_files

Class

C_bakSync : Make local files backup

Constructor
    C_bakSync(this.copypath, this.backpath)
Metohds
    int sync()
        return: 0 = no error, -1 = Exception, -2 = other error
Properties
    String copypath: path of orignal files
    String backpath: path of backup space
    C_log log: log messages and save log file <lib:hi_files>

_Dir :Get file list and properties

Constructor
    _Dir(this.basedir)  <lib:hi_files>

Properties
    option: path of under the basedir
  flg: 0 = no use, 1 = checked, 2 = copied, 3 = updated, 4 = new, 5 = deleted

Version

0.0.0	New Release

example/example.dart

import '../lib/hi_sync.dart';

void main(List<String> arguments) {

	if (arguments.length <= 1) {
		print('baksync CopyDirectory BackDirectory');
	} else {
		C_bakSync bakSync = new C_bakSync(arguments[0], arguments[1]);
		print('Back up ' + arguments[0] + ' to ' + arguments[1]);
		print('Program end : ' + bakSync.sync().toString());
	}

}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  hi_sync: ^0.0.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:hi_sync/hi_sync.dart';
  
Version Uploaded Documentation Archive
0.2.0 Apr 19, 2014 Go to the documentation of hi_sync 0.2.0 Download hi_sync 0.2.0 archive
0.1.2 Apr 12, 2014 Go to the documentation of hi_sync 0.1.2 Download hi_sync 0.1.2 archive
0.1.1 Apr 12, 2014 Go to the documentation of hi_sync 0.1.1 Download hi_sync 0.1.1 archive
0.1.0 Apr 9, 2014 Go to the documentation of hi_sync 0.1.0 Download hi_sync 0.1.0 archive
0.0.1 Apr 3, 2014 Go to the documentation of hi_sync 0.0.1 Download hi_sync 0.0.1 archive
0.0.0 Mar 30, 2014 Go to the documentation of hi_sync 0.0.0 Download hi_sync 0.0.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
--
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
--
Learn more about scoring.

This package version is not analyzed, because it is more than two years old. Check the latest stable version for its analysis.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK 1.3.0-dev.7.2