-
-
Notifications
You must be signed in to change notification settings - Fork 159
Utils APIs
Haojian Wu edited this page Oct 31, 2015
·
6 revisions
###greenworks.Utils.move(source_dir, target_dir, [success_callback], [error_callback])
-
source_dirString -
target_dirString -
success_callbackFunction() -
error_callbackFunction(err)
Moves source_dir to target_dir.
###greenworks.Utils.createArchive(zip_file_path, source_dir, password, compress_level, success_callback, [error_callback])
-
zip_file_pathString -
source_dirString -
passwordString: Empty represents no password -
compress_levelInteger: Compress factor 0-9, store only - best compressed. -
success_callbackFunction() -
error_callbackFunction(err)
Creates a zip archive of source_dir.
###greenworks.Utils.extractArchive(zip_file_path, extract_dir, password, success_callback, [error_callback])
-
zip_file_pathString -
extract_dirString -
passwordString: Empty represents no password -
success_callbackFunction() -
error_callbackFunction(err)
Extracts the zip_file_path to the specified extract_dir.