react-native-update 10.34.2 → 10.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitmodules +4 -4
- package/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +291 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +48 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +473 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +552 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README_cn.md +547 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +127 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_dir_ignore.h +191 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/_hextobytes.h +112 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.cpp +389 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.h +73 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.c +266 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.h +58 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +190 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.bat +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs.sh +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.bat +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.sh +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +49 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +26 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +155 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +364 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +348 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/bzip2.vcxproj +228 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/hpatchz_test.vcxproj +215 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/libdeflate.vcxproj +256 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/longPathAware.exe.manifest +7 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/lzma.vcxproj +271 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/testHashClash.vcxproj +228 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +296 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zlib.vcxproj +242 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zstd.vcxproj +287 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +39 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +447 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +703 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +463 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/libdeflate.xcodeproj/project.pbxproj +286 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lz4.xcodeproj/project.pbxproj +268 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +585 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +301 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +591 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zlib.xcodeproj/project.pbxproj +308 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +524 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.h +33 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.m +33 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatchz.xcodeproj/project.pbxproj +774 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +799 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +201 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +1526 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +1637 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +846 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +79 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +339 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +190 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +339 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.h +87 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +43 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +836 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +246 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_private.h +47 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +112 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +69 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +65 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +346 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +149 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +176 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +84 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +146 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +61 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +152 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +76 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +735 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +240 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +1971 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.c +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.h +42 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +307 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +1786 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +1746 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +201 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_for_hpatch_lite.h +74 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +187 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp +478 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.h +222 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +383 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +73 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +184 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +88 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/config.h +89 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +325 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.cpp +10 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +97 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.cpp +14 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +108 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +186 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +780 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +579 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +415 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +144 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +164 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +148 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +769 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +97 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +954 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +299 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.cpp +168 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.h +44 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +72 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +130 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/qsort_parallel.h +125 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +428 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +133 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/checksum_plugin.h +52 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.c +243 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.h +51 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.c +153 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.h +54 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.c +158 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.h +49 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.c +294 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.h +59 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_patch_private_mt.h +217 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.c +349 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.h +110 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +2643 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +253 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +245 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +361 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.c +366 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h +91 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_input_cache.h +31 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_types.h +106 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +170 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +250 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +67 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.c +497 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.h +106 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.cpp +254 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.h +39 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_sign_diff_type.h +37 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.cpp +62 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.h +44 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dict_decompress_plugin.h +156 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.cpp +440 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.h +88 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.cpp +332 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.h +48 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_types.h +198 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.cpp +697 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.h +74 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_private.h +262 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type.h +174 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type_private.h +174 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.cpp +252 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.h +67 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.cpp +680 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.h +137 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dict_compress_plugin.h +83 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.cpp +125 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.h +56 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/hsynz_plugin.h +55 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.cpp +147 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.h +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.cpp +354 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.h +76 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.cpp +521 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.h +69 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_hash_clash.h +122 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_private.h +66 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type.h +36 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type_private.h +81 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.cpp +247 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.h +71 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.cpp +351 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.h +42 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.cpp +124 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.h +38 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.cpp +203 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.h +55 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.cpp +79 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.h +66 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +301 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +291 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +630 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +889 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.cpp +628 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.h +95 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_code_table.h +78 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.c +950 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.h +72 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm/7zCrcOpt.asm +100 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/7zAsm.S +181 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/LzmaDecOpt.S +1487 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +341 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +258 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +742 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzFindOpt.asm +540 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +1339 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sha256Opt.asm +275 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sort.asm +860 -0
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +523 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7z.h +204 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +89 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +1786 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.c +36 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf2.c +52 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +464 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +199 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +673 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +443 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +199 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +597 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.rc +55 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zWindows.h +101 -0
- package/harmony/pushy/src/main/cpp/lzma/C/7zip_gcc_c.mak +360 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +429 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +1002 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +605 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Asm_c.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +290 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +332 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +506 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +709 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +105 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +187 -0
- package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +14 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +246 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +970 -0
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +686 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +169 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +99 -0
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +20 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +1746 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +160 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +1422 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +114 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindOpt.c +578 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +493 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +1095 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +81 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +807 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +111 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +53 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +103 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +1363 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +237 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +3150 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +85 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +42 -0
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +138 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +604 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +144 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +1124 -0
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +202 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +169 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +1131 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +181 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +312 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +337 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +127 -0
- package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +50 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +492 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256Opt.c +451 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +268 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +15 -0
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.c +835 -0
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +812 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +260 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +249 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +889 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +44 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +32 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +313 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +192 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +30 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +21 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.def +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +206 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +15 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +59 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.c +4 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +657 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsp +231 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +44 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +40 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/setup.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +92 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +542 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +140 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +261 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +2876 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +1384 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +385 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x86.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x64.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x86.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_arm64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang.mak +1 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang_mac.mak +1 -0
- package/harmony/pushy/src/main/cpp/lzma/C/warn_gcc.mak +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +240 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip_gcc.mak +1370 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +92 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +599 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +73 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +721 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +95 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +444 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +264 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +101 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +795 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +1162 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +1764 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +454 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +207 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +1026 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +346 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +26 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +3088 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +167 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +158 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +1144 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +447 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +315 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +169 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +140 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +193 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +175 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +754 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Icons/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +608 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +353 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +1452 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +2090 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +168 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile.gcc +279 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/resource.rc +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/resource.rc +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +817 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +540 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +68 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +131 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaSpec/LzmaSpec.cpp +715 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +1017 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +521 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +137 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile.gcc +215 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +246 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +83 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +135 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +872 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +371 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/resource.rc +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/setup.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/7z.ico +0 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +1074 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +268 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +159 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.h +1 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +358 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +548 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +200 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +923 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +205 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +577 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +201 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +237 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +45 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +393 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +221 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +765 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +349 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.cpp +855 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.h +160 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +111 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +133 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +33 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +117 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +80 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +106 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +151 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +78 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +290 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +146 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +101 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +867 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +106 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +59 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +91 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +378 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +153 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyRegister.cpp +15 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +126 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +267 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +134 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +350 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +113 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +374 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +45 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +219 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +193 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +22 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +151 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +243 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +315 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +130 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +277 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +122 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +241 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +119 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +243 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +480 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +54 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +210 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzFindOpt.mak +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec_gcc.mak +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersion.h +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sha256.mak +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sort.mak +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/SubBuild.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +1145 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +331 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsw +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile.gcc +72 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/resource.rc +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +1799 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +170 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +3077 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +641 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +176 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +398 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +182 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +5026 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +37 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +407 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +1637 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +575 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +107 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +44 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +296 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +2273 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +322 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +112 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +1337 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +482 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +3702 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +469 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +745 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +88 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.cpp +25 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +1931 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +221 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.cpp +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +1069 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +197 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +302 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +74 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +60 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +84 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +212 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +946 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +211 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +426 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +1417 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +1635 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +235 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +115 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +73 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +186 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +998 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +148 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +118 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +68 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile.gcc +187 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/resource.rc +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +1132 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +32 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialogRes.h +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +64 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialogRes.h +4 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +1272 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.cpp +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.cpp +218 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.h +48 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialogRes.h +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +119 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +288 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +89 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +93 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialogRes.h +5 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +201 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +171 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.rc +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +1483 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +355 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.rc +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +49 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +85 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialogRes.h +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.cpp +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +104 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/StdAfx.h +67 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +351 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +65 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +199 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +25 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/7zG.exe.manifest +23 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +59 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +421 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +113 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.rc +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialogRes.h +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +297 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractRes.h +51 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/resource2.h +2 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x86.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x86.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_arm64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_x64.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_arm64.mak +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x86.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_arm64.mak +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x86.mak +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_arm64.mak +13 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_x64.mak +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang.mak +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang_mac.mak +9 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_gcc.mak +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +252 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +6 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +21 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +231 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +63 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common0.h +330 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +77 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.cpp +93 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.h +41 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +215 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +54 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +30 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +150 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +18 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/LzFindPrepare.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +297 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +185 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +693 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +14 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +63 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +57 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +75 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +1842 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +1079 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.cpp +3 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +724 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +292 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +325 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +340 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +121 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Prepare.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +67 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +8 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +98 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +248 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +762 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +154 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +38 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +123 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +863 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +384 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +789 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +231 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Init.cpp +7 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +86 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.cpp +130 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +269 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +77 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +52 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +446 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +213 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.cpp +10 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +162 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +156 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +35 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +165 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +50 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +34 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +28 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +43 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +27 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +202 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +53 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +178 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +103 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +133 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +16 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +1362 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +172 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +1449 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +347 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +954 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +467 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +697 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.cpp +12 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +66 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +911 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +142 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +187 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +39 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.cpp +36 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.h +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +127 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +40 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +58 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +393 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +173 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +274 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +474 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +96 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +103 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +17 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +186 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +150 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +839 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +129 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +11 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +87 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +386 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +421 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +189 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.cpp +1251 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.h +19 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +46 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +467 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +146 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +179 -0
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +363 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CRC.cs +55 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/CommandLineParser.cs +274 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/InBuffer.cs +72 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Common/OutBuffer.cs +47 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/IMatchFinder.cs +24 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzBinTree.cs +367 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzInWindow.cs +132 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZ/LzOutWindow.cs +110 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaBase.cs +76 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaDecoder.cs +398 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LZMA/LzmaEncoder.cs +1480 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.cs +364 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.sln +20 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaBench.cs +340 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/AssemblyInfo.cs +29 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Resources.cs +70 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/Properties/Settings.cs +42 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoder.cs +234 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBit.cs +117 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/RangeCoder/RangeCoderBitTree.cs +157 -0
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/ICoder.cs +157 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/7zC.txt +187 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/7zFormat.txt +469 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +177 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/installer.txt +166 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +651 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +437 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-specification.txt +1176 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +345 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/CRC.java +52 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/BinTree.java +382 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/InWindow.java +131 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZ/OutWindow.java +85 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Base.java +88 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Decoder.java +329 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/LZMA/Encoder.java +1416 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeDecoder.java +55 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/BitTreeEncoder.java +99 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Decoder.java +88 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/Compression/RangeCoder/Encoder.java +151 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/ICodeProgress.java +6 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaAlone.java +253 -0
- package/harmony/pushy/src/main/cpp/lzma/Java/SevenZip/LzmaBench.java +392 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/installer/config.txt +5 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/installer/cr.bat +5 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1637 @@
|
|
|
1
|
+
// EnumDirItems.cpp
|
|
2
|
+
|
|
3
|
+
#include "StdAfx.h"
|
|
4
|
+
|
|
5
|
+
#include <wchar.h>
|
|
6
|
+
// #include <stdio.h>
|
|
7
|
+
|
|
8
|
+
#ifndef _WIN32
|
|
9
|
+
#include <grp.h>
|
|
10
|
+
#include <pwd.h>
|
|
11
|
+
#include "../../../Common/UTFConvert.h"
|
|
12
|
+
#endif
|
|
13
|
+
|
|
14
|
+
#include "../../../Common/Wildcard.h"
|
|
15
|
+
|
|
16
|
+
#include "../../../Windows/FileDir.h"
|
|
17
|
+
#include "../../../Windows/FileIO.h"
|
|
18
|
+
#include "../../../Windows/FileName.h"
|
|
19
|
+
|
|
20
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
21
|
+
#define Z7_USE_SECURITY_CODE
|
|
22
|
+
#include "../../../Windows/SecurityUtils.h"
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
#include "EnumDirItems.h"
|
|
26
|
+
#include "SortUtils.h"
|
|
27
|
+
|
|
28
|
+
using namespace NWindows;
|
|
29
|
+
using namespace NFile;
|
|
30
|
+
using namespace NName;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
static bool FindFile_KeepDots(NFile::NFind::CFileInfo &fi, const FString &path, bool followLink)
|
|
34
|
+
{
|
|
35
|
+
const bool res = fi.Find(path, followLink);
|
|
36
|
+
if (!res)
|
|
37
|
+
return res;
|
|
38
|
+
if (path.IsEmpty())
|
|
39
|
+
return res;
|
|
40
|
+
// we keep name "." and "..", if it's without tail slash
|
|
41
|
+
const FChar *p = path.RightPtr(1);
|
|
42
|
+
if (*p != '.')
|
|
43
|
+
return res;
|
|
44
|
+
if (p != path.Ptr())
|
|
45
|
+
{
|
|
46
|
+
FChar c = p[-1];
|
|
47
|
+
if (!IS_PATH_SEPAR(c))
|
|
48
|
+
{
|
|
49
|
+
if (c != '.')
|
|
50
|
+
return res;
|
|
51
|
+
p--;
|
|
52
|
+
if (p != path.Ptr())
|
|
53
|
+
{
|
|
54
|
+
c = p[-1];
|
|
55
|
+
if (!IS_PATH_SEPAR(c))
|
|
56
|
+
return res;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
fi.Name = p;
|
|
61
|
+
return res;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
void CDirItems::AddDirFileInfo(int phyParent, int logParent, int secureIndex,
|
|
66
|
+
const NFind::CFileInfo &fi)
|
|
67
|
+
{
|
|
68
|
+
/*
|
|
69
|
+
CDirItem di(fi);
|
|
70
|
+
di.PhyParent = phyParent;
|
|
71
|
+
di.LogParent = logParent;
|
|
72
|
+
di.SecureIndex = secureIndex;
|
|
73
|
+
Items.Add(di);
|
|
74
|
+
*/
|
|
75
|
+
VECTOR_ADD_NEW_OBJECT (Items, CDirItem(fi, phyParent, logParent, secureIndex))
|
|
76
|
+
|
|
77
|
+
if (fi.IsDir())
|
|
78
|
+
Stat.NumDirs++;
|
|
79
|
+
#ifdef _WIN32
|
|
80
|
+
else if (fi.IsAltStream)
|
|
81
|
+
{
|
|
82
|
+
Stat.NumAltStreams++;
|
|
83
|
+
Stat.AltStreamsSize += fi.Size;
|
|
84
|
+
}
|
|
85
|
+
#endif
|
|
86
|
+
else
|
|
87
|
+
{
|
|
88
|
+
Stat.NumFiles++;
|
|
89
|
+
Stat.FilesSize += fi.Size;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// (DWORD)E_FAIL
|
|
94
|
+
#define DI_DEFAULT_ERROR ERROR_INVALID_FUNCTION
|
|
95
|
+
|
|
96
|
+
HRESULT CDirItems::AddError(const FString &path, DWORD errorCode)
|
|
97
|
+
{
|
|
98
|
+
if (errorCode == 0)
|
|
99
|
+
errorCode = DI_DEFAULT_ERROR;
|
|
100
|
+
Stat.NumErrors++;
|
|
101
|
+
if (Callback)
|
|
102
|
+
return Callback->ScanError(path, errorCode);
|
|
103
|
+
return S_OK;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
HRESULT CDirItems::AddError(const FString &path)
|
|
107
|
+
{
|
|
108
|
+
return AddError(path, ::GetLastError());
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
static const unsigned kScanProgressStepMask = (1 << 12) - 1;
|
|
112
|
+
|
|
113
|
+
HRESULT CDirItems::ScanProgress(const FString &dirPath)
|
|
114
|
+
{
|
|
115
|
+
if (Callback)
|
|
116
|
+
return Callback->ScanProgress(Stat, dirPath, true);
|
|
117
|
+
return S_OK;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
UString CDirItems::GetPrefixesPath(const CIntVector &parents, int index, const UString &name) const
|
|
121
|
+
{
|
|
122
|
+
UString path;
|
|
123
|
+
unsigned len = name.Len();
|
|
124
|
+
|
|
125
|
+
int i;
|
|
126
|
+
for (i = index; i >= 0; i = parents[(unsigned)i])
|
|
127
|
+
len += Prefixes[(unsigned)i].Len();
|
|
128
|
+
|
|
129
|
+
wchar_t *p = path.GetBuf_SetEnd(len) + len;
|
|
130
|
+
|
|
131
|
+
p -= name.Len();
|
|
132
|
+
wmemcpy(p, (const wchar_t *)name, name.Len());
|
|
133
|
+
|
|
134
|
+
for (i = index; i >= 0; i = parents[(unsigned)i])
|
|
135
|
+
{
|
|
136
|
+
const UString &s = Prefixes[(unsigned)i];
|
|
137
|
+
p -= s.Len();
|
|
138
|
+
wmemcpy(p, (const wchar_t *)s, s.Len());
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return path;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
FString CDirItems::GetPhyPath(unsigned index) const
|
|
145
|
+
{
|
|
146
|
+
const CDirItem &di = Items[index];
|
|
147
|
+
return us2fs(GetPrefixesPath(PhyParents, di.PhyParent, di.Name));
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
UString CDirItems::GetLogPath(unsigned index) const
|
|
151
|
+
{
|
|
152
|
+
const CDirItem &di = Items[index];
|
|
153
|
+
return GetPrefixesPath(LogParents, di.LogParent, di.Name);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
void CDirItems::ReserveDown()
|
|
157
|
+
{
|
|
158
|
+
Prefixes.ReserveDown();
|
|
159
|
+
PhyParents.ReserveDown();
|
|
160
|
+
LogParents.ReserveDown();
|
|
161
|
+
Items.ReserveDown();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
unsigned CDirItems::AddPrefix(int phyParent, int logParent, const UString &prefix)
|
|
165
|
+
{
|
|
166
|
+
PhyParents.Add(phyParent);
|
|
167
|
+
LogParents.Add(logParent);
|
|
168
|
+
return Prefixes.Add(prefix);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
void CDirItems::DeleteLastPrefix()
|
|
172
|
+
{
|
|
173
|
+
PhyParents.DeleteBack();
|
|
174
|
+
LogParents.DeleteBack();
|
|
175
|
+
Prefixes.DeleteBack();
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
bool InitLocalPrivileges();
|
|
179
|
+
|
|
180
|
+
CDirItems::CDirItems():
|
|
181
|
+
SymLinks(false),
|
|
182
|
+
ScanAltStreams(false)
|
|
183
|
+
, ExcludeDirItems(false)
|
|
184
|
+
, ExcludeFileItems(false)
|
|
185
|
+
, ShareForWrite(false)
|
|
186
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
187
|
+
, ReadSecure(false)
|
|
188
|
+
#endif
|
|
189
|
+
#ifndef _WIN32
|
|
190
|
+
, StoreOwnerName(false)
|
|
191
|
+
#endif
|
|
192
|
+
, Callback(NULL)
|
|
193
|
+
{
|
|
194
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
195
|
+
_saclEnabled = InitLocalPrivileges();
|
|
196
|
+
#endif
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
201
|
+
|
|
202
|
+
HRESULT CDirItems::AddSecurityItem(const FString &path, int &secureIndex)
|
|
203
|
+
{
|
|
204
|
+
secureIndex = -1;
|
|
205
|
+
|
|
206
|
+
SECURITY_INFORMATION securInfo =
|
|
207
|
+
DACL_SECURITY_INFORMATION |
|
|
208
|
+
GROUP_SECURITY_INFORMATION |
|
|
209
|
+
OWNER_SECURITY_INFORMATION;
|
|
210
|
+
if (_saclEnabled)
|
|
211
|
+
securInfo |= SACL_SECURITY_INFORMATION;
|
|
212
|
+
|
|
213
|
+
DWORD errorCode = 0;
|
|
214
|
+
DWORD secureSize;
|
|
215
|
+
|
|
216
|
+
BOOL res = ::GetFileSecurityW(fs2us(path), securInfo, (PSECURITY_DESCRIPTOR)(void *)(Byte *)TempSecureBuf, (DWORD)TempSecureBuf.Size(), &secureSize);
|
|
217
|
+
|
|
218
|
+
if (res)
|
|
219
|
+
{
|
|
220
|
+
if (secureSize == 0)
|
|
221
|
+
return S_OK;
|
|
222
|
+
if (secureSize > TempSecureBuf.Size())
|
|
223
|
+
errorCode = ERROR_INVALID_FUNCTION;
|
|
224
|
+
}
|
|
225
|
+
else
|
|
226
|
+
{
|
|
227
|
+
errorCode = GetLastError();
|
|
228
|
+
if (errorCode == ERROR_INSUFFICIENT_BUFFER)
|
|
229
|
+
{
|
|
230
|
+
if (secureSize <= TempSecureBuf.Size())
|
|
231
|
+
errorCode = ERROR_INVALID_FUNCTION;
|
|
232
|
+
else
|
|
233
|
+
{
|
|
234
|
+
TempSecureBuf.Alloc(secureSize);
|
|
235
|
+
res = ::GetFileSecurityW(fs2us(path), securInfo, (PSECURITY_DESCRIPTOR)(void *)(Byte *)TempSecureBuf, (DWORD)TempSecureBuf.Size(), &secureSize);
|
|
236
|
+
if (res)
|
|
237
|
+
{
|
|
238
|
+
if (secureSize != TempSecureBuf.Size())
|
|
239
|
+
errorCode = ERROR_INVALID_FUNCTION;
|
|
240
|
+
}
|
|
241
|
+
else
|
|
242
|
+
errorCode = GetLastError();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if (res)
|
|
248
|
+
{
|
|
249
|
+
secureIndex = (int)SecureBlocks.AddUniq(TempSecureBuf, secureSize);
|
|
250
|
+
return S_OK;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
return AddError(path, errorCode);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#endif // Z7_USE_SECURITY_CODE
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
HRESULT CDirItems::EnumerateOneDir(const FString &phyPrefix, CObjectVector<NFind::CFileInfo> &files)
|
|
260
|
+
{
|
|
261
|
+
NFind::CEnumerator enumerator;
|
|
262
|
+
// printf("\n enumerator.SetDirPrefix(phyPrefix) \n");
|
|
263
|
+
|
|
264
|
+
enumerator.SetDirPrefix(phyPrefix);
|
|
265
|
+
|
|
266
|
+
#ifdef _WIN32
|
|
267
|
+
|
|
268
|
+
NFind::CFileInfo fi;
|
|
269
|
+
|
|
270
|
+
for (unsigned ttt = 0; ; ttt++)
|
|
271
|
+
{
|
|
272
|
+
bool found;
|
|
273
|
+
if (!enumerator.Next(fi, found))
|
|
274
|
+
return AddError(phyPrefix);
|
|
275
|
+
if (!found)
|
|
276
|
+
return S_OK;
|
|
277
|
+
files.Add(fi);
|
|
278
|
+
if (Callback && (ttt & kScanProgressStepMask) == kScanProgressStepMask)
|
|
279
|
+
{
|
|
280
|
+
RINOK(ScanProgress(phyPrefix))
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
#else // _WIN32
|
|
285
|
+
|
|
286
|
+
// enumerator.SolveLinks = !SymLinks;
|
|
287
|
+
|
|
288
|
+
CObjectVector<NFind::CDirEntry> entries;
|
|
289
|
+
|
|
290
|
+
for (;;)
|
|
291
|
+
{
|
|
292
|
+
bool found;
|
|
293
|
+
NFind::CDirEntry de;
|
|
294
|
+
if (!enumerator.Next(de, found))
|
|
295
|
+
return AddError(phyPrefix);
|
|
296
|
+
if (!found)
|
|
297
|
+
break;
|
|
298
|
+
entries.Add(de);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
FOR_VECTOR(i, entries)
|
|
302
|
+
{
|
|
303
|
+
const NFind::CDirEntry &de = entries[i];
|
|
304
|
+
NFind::CFileInfo fi;
|
|
305
|
+
if (!enumerator.Fill_FileInfo(de, fi, !SymLinks))
|
|
306
|
+
// if (!fi.Find_AfterEnumerator(path))
|
|
307
|
+
{
|
|
308
|
+
const FString path = phyPrefix + de.Name;
|
|
309
|
+
{
|
|
310
|
+
RINOK(AddError(path))
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
files.Add(fi);
|
|
316
|
+
|
|
317
|
+
if (Callback && (i & kScanProgressStepMask) == kScanProgressStepMask)
|
|
318
|
+
{
|
|
319
|
+
RINOK(ScanProgress(phyPrefix))
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
return S_OK;
|
|
324
|
+
|
|
325
|
+
#endif // _WIN32
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
HRESULT CDirItems::EnumerateDir(int phyParent, int logParent, const FString &phyPrefix)
|
|
332
|
+
{
|
|
333
|
+
RINOK(ScanProgress(phyPrefix))
|
|
334
|
+
|
|
335
|
+
CObjectVector<NFind::CFileInfo> files;
|
|
336
|
+
RINOK(EnumerateOneDir(phyPrefix, files))
|
|
337
|
+
|
|
338
|
+
FOR_VECTOR (i, files)
|
|
339
|
+
{
|
|
340
|
+
#ifdef _WIN32
|
|
341
|
+
const NFind::CFileInfo &fi = files[i];
|
|
342
|
+
#else
|
|
343
|
+
const NFind::CFileInfo &fi = files[i];
|
|
344
|
+
/*
|
|
345
|
+
NFind::CFileInfo fi;
|
|
346
|
+
{
|
|
347
|
+
const NFind::CDirEntry &di = files[i];
|
|
348
|
+
const FString path = phyPrefix + di.Name;
|
|
349
|
+
if (!fi.Find_AfterEnumerator(path))
|
|
350
|
+
{
|
|
351
|
+
RINOK(AddError(path));
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
fi.Name = di.Name;
|
|
355
|
+
}
|
|
356
|
+
*/
|
|
357
|
+
#endif
|
|
358
|
+
|
|
359
|
+
if (CanIncludeItem(fi.IsDir()))
|
|
360
|
+
{
|
|
361
|
+
int secureIndex = -1;
|
|
362
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
363
|
+
if (ReadSecure)
|
|
364
|
+
{
|
|
365
|
+
RINOK(AddSecurityItem(phyPrefix + fi.Name, secureIndex))
|
|
366
|
+
}
|
|
367
|
+
#endif
|
|
368
|
+
AddDirFileInfo(phyParent, logParent, secureIndex, fi);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
if (Callback && (i & kScanProgressStepMask) == kScanProgressStepMask)
|
|
372
|
+
{
|
|
373
|
+
RINOK(ScanProgress(phyPrefix))
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
if (fi.IsDir())
|
|
377
|
+
{
|
|
378
|
+
const FString name2 = fi.Name + FCHAR_PATH_SEPARATOR;
|
|
379
|
+
unsigned parent = AddPrefix(phyParent, logParent, fs2us(name2));
|
|
380
|
+
RINOK(EnumerateDir((int)parent, (int)parent, phyPrefix + name2))
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return S_OK;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/*
|
|
388
|
+
EnumerateItems2()
|
|
389
|
+
const FStringVector &filePaths - are path without tail slashes.
|
|
390
|
+
All dir prefixes of filePaths will be not stores in logical paths
|
|
391
|
+
fix it: we can scan AltStream also.
|
|
392
|
+
*/
|
|
393
|
+
|
|
394
|
+
#ifdef _WIN32
|
|
395
|
+
// #define FOLLOW_LINK_PARAM
|
|
396
|
+
// #define FOLLOW_LINK_PARAM2
|
|
397
|
+
#define FOLLOW_LINK_PARAM , (!SymLinks)
|
|
398
|
+
#define FOLLOW_LINK_PARAM2 , (!dirItems.SymLinks)
|
|
399
|
+
#else
|
|
400
|
+
#define FOLLOW_LINK_PARAM , (!SymLinks)
|
|
401
|
+
#define FOLLOW_LINK_PARAM2 , (!dirItems.SymLinks)
|
|
402
|
+
#endif
|
|
403
|
+
|
|
404
|
+
HRESULT CDirItems::EnumerateItems2(
|
|
405
|
+
const FString &phyPrefix,
|
|
406
|
+
const UString &logPrefix,
|
|
407
|
+
const FStringVector &filePaths,
|
|
408
|
+
FStringVector *requestedPaths)
|
|
409
|
+
{
|
|
410
|
+
const int phyParent = phyPrefix.IsEmpty() ? -1 : (int)AddPrefix(-1, -1, fs2us(phyPrefix));
|
|
411
|
+
const int logParent = logPrefix.IsEmpty() ? -1 : (int)AddPrefix(-1, -1, logPrefix);
|
|
412
|
+
|
|
413
|
+
#ifdef _WIN32
|
|
414
|
+
const bool phyPrefix_isAltStreamPrefix =
|
|
415
|
+
NFile::NName::IsAltStreamPrefixWithColon(fs2us(phyPrefix));
|
|
416
|
+
#endif
|
|
417
|
+
|
|
418
|
+
FOR_VECTOR (i, filePaths)
|
|
419
|
+
{
|
|
420
|
+
const FString &filePath = filePaths[i];
|
|
421
|
+
NFind::CFileInfo fi;
|
|
422
|
+
const FString phyPath = phyPrefix + filePath;
|
|
423
|
+
if (!FindFile_KeepDots(fi, phyPath FOLLOW_LINK_PARAM))
|
|
424
|
+
{
|
|
425
|
+
RINOK(AddError(phyPath))
|
|
426
|
+
continue;
|
|
427
|
+
}
|
|
428
|
+
if (requestedPaths)
|
|
429
|
+
requestedPaths->Add(phyPath);
|
|
430
|
+
|
|
431
|
+
const int delimiter = filePath.ReverseFind_PathSepar();
|
|
432
|
+
FString phyPrefixCur;
|
|
433
|
+
int phyParentCur = phyParent;
|
|
434
|
+
if (delimiter >= 0)
|
|
435
|
+
{
|
|
436
|
+
phyPrefixCur.SetFrom(filePath, (unsigned)(delimiter + 1));
|
|
437
|
+
phyParentCur = (int)AddPrefix(phyParent, logParent, fs2us(phyPrefixCur));
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
if (CanIncludeItem(fi.IsDir()))
|
|
441
|
+
{
|
|
442
|
+
int secureIndex = -1;
|
|
443
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
444
|
+
if (ReadSecure)
|
|
445
|
+
{
|
|
446
|
+
RINOK(AddSecurityItem(phyPath, secureIndex))
|
|
447
|
+
}
|
|
448
|
+
#endif
|
|
449
|
+
#ifdef _WIN32
|
|
450
|
+
if (phyPrefix_isAltStreamPrefix && fi.IsAltStream)
|
|
451
|
+
{
|
|
452
|
+
const int pos = fi.Name.Find(FChar(':'));
|
|
453
|
+
if (pos >= 0)
|
|
454
|
+
fi.Name.DeleteFrontal((unsigned)pos + 1);
|
|
455
|
+
}
|
|
456
|
+
#endif
|
|
457
|
+
AddDirFileInfo(phyParentCur, logParent, secureIndex, fi);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
if (fi.IsDir())
|
|
461
|
+
{
|
|
462
|
+
const FString name2 = fi.Name + FCHAR_PATH_SEPARATOR;
|
|
463
|
+
const unsigned parent = AddPrefix(phyParentCur, logParent, fs2us(name2));
|
|
464
|
+
RINOK(EnumerateDir((int)parent, (int)parent, phyPrefix + phyPrefixCur + name2))
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
ReserveDown();
|
|
469
|
+
return S_OK;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
static HRESULT EnumerateDirItems(
|
|
476
|
+
const NWildcard::CCensorNode &curNode,
|
|
477
|
+
const int phyParent, const int logParent,
|
|
478
|
+
const FString &phyPrefix,
|
|
479
|
+
const UStringVector &addParts, // additional parts from curNode
|
|
480
|
+
CDirItems &dirItems,
|
|
481
|
+
bool enterToSubFolders);
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
/* EnumerateDirItems_Spec()
|
|
485
|
+
adds new Dir item prefix, and enumerates dir items,
|
|
486
|
+
then it can remove that Dir item prefix, if there are no items in that dir.
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
/*
|
|
491
|
+
EnumerateDirItems_Spec()
|
|
492
|
+
it's similar to EnumerateDirItems, but phyPrefix doesn't include (curFolderName)
|
|
493
|
+
*/
|
|
494
|
+
|
|
495
|
+
static HRESULT EnumerateDirItems_Spec(
|
|
496
|
+
const NWildcard::CCensorNode &curNode,
|
|
497
|
+
const int phyParent, const int logParent, const FString &curFolderName,
|
|
498
|
+
const FString &phyPrefix, // without (curFolderName)
|
|
499
|
+
const UStringVector &addParts, // (curNode + addParts) includes (curFolderName)
|
|
500
|
+
CDirItems &dirItems,
|
|
501
|
+
bool enterToSubFolders)
|
|
502
|
+
{
|
|
503
|
+
const FString name2 = curFolderName + FCHAR_PATH_SEPARATOR;
|
|
504
|
+
const unsigned parent = dirItems.AddPrefix(phyParent, logParent, fs2us(name2));
|
|
505
|
+
const unsigned numItems = dirItems.Items.Size();
|
|
506
|
+
HRESULT res = EnumerateDirItems(
|
|
507
|
+
curNode, (int)parent, (int)parent, phyPrefix + name2,
|
|
508
|
+
addParts, dirItems, enterToSubFolders);
|
|
509
|
+
if (numItems == dirItems.Items.Size())
|
|
510
|
+
dirItems.DeleteLastPrefix();
|
|
511
|
+
return res;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
#ifndef UNDER_CE
|
|
516
|
+
|
|
517
|
+
#ifdef _WIN32
|
|
518
|
+
|
|
519
|
+
static HRESULT EnumerateAltStreams(
|
|
520
|
+
const NFind::CFileInfo &fi,
|
|
521
|
+
const NWildcard::CCensorNode &curNode,
|
|
522
|
+
const int phyParent, const int logParent,
|
|
523
|
+
const FString &phyPath, // with (fi.Name), without tail slash for folders
|
|
524
|
+
const UStringVector &addParts, // with (fi.Name), prefix parts from curNode
|
|
525
|
+
bool addAllSubStreams,
|
|
526
|
+
CDirItems &dirItems)
|
|
527
|
+
{
|
|
528
|
+
// we don't use (ExcludeFileItems) rules for AltStreams
|
|
529
|
+
// if (dirItems.ExcludeFileItems) return S_OK;
|
|
530
|
+
|
|
531
|
+
NFind::CStreamEnumerator enumerator(phyPath);
|
|
532
|
+
for (;;)
|
|
533
|
+
{
|
|
534
|
+
NFind::CStreamInfo si;
|
|
535
|
+
bool found;
|
|
536
|
+
if (!enumerator.Next(si, found))
|
|
537
|
+
{
|
|
538
|
+
return dirItems.AddError(phyPath + FTEXT(":*")); // , (DWORD)E_FAIL
|
|
539
|
+
}
|
|
540
|
+
if (!found)
|
|
541
|
+
return S_OK;
|
|
542
|
+
if (si.IsMainStream())
|
|
543
|
+
continue;
|
|
544
|
+
UStringVector parts = addParts;
|
|
545
|
+
const UString reducedName = si.GetReducedName();
|
|
546
|
+
parts.Back() += reducedName;
|
|
547
|
+
if (curNode.CheckPathToRoot(false, parts, true))
|
|
548
|
+
continue;
|
|
549
|
+
if (!addAllSubStreams)
|
|
550
|
+
if (!curNode.CheckPathToRoot(true, parts, true))
|
|
551
|
+
continue;
|
|
552
|
+
|
|
553
|
+
NFind::CFileInfo fi2 = fi;
|
|
554
|
+
fi2.Name += us2fs(reducedName);
|
|
555
|
+
fi2.Size = si.Size;
|
|
556
|
+
fi2.Attrib &= ~(DWORD)(FILE_ATTRIBUTE_DIRECTORY | FILE_ATTRIBUTE_REPARSE_POINT);
|
|
557
|
+
fi2.IsAltStream = true;
|
|
558
|
+
dirItems.AddDirFileInfo(phyParent, logParent, -1, fi2);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
#endif // _WIN32
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
/* We get Reparse data and parse it.
|
|
566
|
+
If there is Reparse error, we free dirItem.Reparse data.
|
|
567
|
+
Do we need to work with empty reparse data?
|
|
568
|
+
*/
|
|
569
|
+
|
|
570
|
+
HRESULT CDirItems::SetLinkInfo(CDirItem &dirItem, const NFind::CFileInfo &fi,
|
|
571
|
+
const FString &phyPrefix)
|
|
572
|
+
{
|
|
573
|
+
if (!SymLinks)
|
|
574
|
+
return S_OK;
|
|
575
|
+
|
|
576
|
+
#ifdef _WIN32
|
|
577
|
+
if (!fi.HasReparsePoint() || fi.IsAltStream)
|
|
578
|
+
#else // _WIN32
|
|
579
|
+
if (!fi.IsPosixLink())
|
|
580
|
+
#endif // _WIN32
|
|
581
|
+
return S_OK;
|
|
582
|
+
|
|
583
|
+
const FString path = phyPrefix + fi.Name;
|
|
584
|
+
CByteBuffer &buf = dirItem.ReparseData;
|
|
585
|
+
if (NIO::GetReparseData(path, buf))
|
|
586
|
+
{
|
|
587
|
+
// if (dirItem.ReparseData.Size() != 0)
|
|
588
|
+
Stat.FilesSize -= fi.Size;
|
|
589
|
+
return S_OK;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
DWORD res = ::GetLastError();
|
|
593
|
+
buf.Free();
|
|
594
|
+
return AddError(path, res);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
#endif // UNDER_CE
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
static HRESULT EnumerateForItem(
|
|
602
|
+
const NFind::CFileInfo &fi,
|
|
603
|
+
const NWildcard::CCensorNode &curNode,
|
|
604
|
+
const int phyParent, const int logParent, const FString &phyPrefix,
|
|
605
|
+
const UStringVector &addParts, // additional parts from curNode, without (fi.Name)
|
|
606
|
+
CDirItems &dirItems,
|
|
607
|
+
bool enterToSubFolders)
|
|
608
|
+
{
|
|
609
|
+
const UString name = fs2us(fi.Name);
|
|
610
|
+
UStringVector newParts = addParts;
|
|
611
|
+
newParts.Add(name);
|
|
612
|
+
|
|
613
|
+
// check the path in exclude rules
|
|
614
|
+
if (curNode.CheckPathToRoot(false, newParts, !fi.IsDir()))
|
|
615
|
+
return S_OK;
|
|
616
|
+
|
|
617
|
+
#if !defined(UNDER_CE)
|
|
618
|
+
int dirItemIndex = -1;
|
|
619
|
+
#if defined(_WIN32)
|
|
620
|
+
bool addAllSubStreams = false;
|
|
621
|
+
bool needAltStreams = true;
|
|
622
|
+
#endif // _WIN32
|
|
623
|
+
#endif // !defined(UNDER_CE)
|
|
624
|
+
|
|
625
|
+
// check the path in inlcude rules
|
|
626
|
+
if (curNode.CheckPathToRoot(true, newParts, !fi.IsDir()))
|
|
627
|
+
{
|
|
628
|
+
#if !defined(UNDER_CE)
|
|
629
|
+
// dirItemIndex = (int)dirItems.Items.Size();
|
|
630
|
+
#if defined(_WIN32)
|
|
631
|
+
// we will not check include rules for substreams.
|
|
632
|
+
addAllSubStreams = true;
|
|
633
|
+
#endif // _WIN32
|
|
634
|
+
#endif // !defined(UNDER_CE)
|
|
635
|
+
|
|
636
|
+
if (dirItems.CanIncludeItem(fi.IsDir()))
|
|
637
|
+
{
|
|
638
|
+
int secureIndex = -1;
|
|
639
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
640
|
+
if (dirItems.ReadSecure)
|
|
641
|
+
{
|
|
642
|
+
RINOK(dirItems.AddSecurityItem(phyPrefix + fi.Name, secureIndex))
|
|
643
|
+
}
|
|
644
|
+
#endif
|
|
645
|
+
#if !defined(UNDER_CE)
|
|
646
|
+
dirItemIndex = (int)dirItems.Items.Size();
|
|
647
|
+
#endif // !defined(UNDER_CE)
|
|
648
|
+
dirItems.AddDirFileInfo(phyParent, logParent, secureIndex, fi);
|
|
649
|
+
}
|
|
650
|
+
else
|
|
651
|
+
{
|
|
652
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
653
|
+
needAltStreams = false;
|
|
654
|
+
#endif
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
if (fi.IsDir())
|
|
658
|
+
enterToSubFolders = true;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
#if !defined(UNDER_CE)
|
|
662
|
+
|
|
663
|
+
// we don't scan AltStreams for link files
|
|
664
|
+
|
|
665
|
+
if (dirItemIndex >= 0)
|
|
666
|
+
{
|
|
667
|
+
CDirItem &dirItem = dirItems.Items[(unsigned)dirItemIndex];
|
|
668
|
+
RINOK(dirItems.SetLinkInfo(dirItem, fi, phyPrefix))
|
|
669
|
+
if (dirItem.ReparseData.Size() != 0)
|
|
670
|
+
return S_OK;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
#if defined(_WIN32)
|
|
674
|
+
if (needAltStreams && dirItems.ScanAltStreams && !fi.IsAltStream)
|
|
675
|
+
{
|
|
676
|
+
RINOK(EnumerateAltStreams(fi, curNode, phyParent, logParent,
|
|
677
|
+
phyPrefix + fi.Name, // with (fi.Name)
|
|
678
|
+
newParts, // with (fi.Name)
|
|
679
|
+
addAllSubStreams,
|
|
680
|
+
dirItems))
|
|
681
|
+
}
|
|
682
|
+
#endif
|
|
683
|
+
|
|
684
|
+
#endif // !defined(UNDER_CE)
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
#ifndef _WIN32
|
|
688
|
+
if (!fi.IsPosixLink()) // posix link can follow to dir
|
|
689
|
+
#endif
|
|
690
|
+
if (!fi.IsDir())
|
|
691
|
+
return S_OK;
|
|
692
|
+
|
|
693
|
+
const NWildcard::CCensorNode *nextNode = NULL;
|
|
694
|
+
|
|
695
|
+
if (addParts.IsEmpty())
|
|
696
|
+
{
|
|
697
|
+
int index = curNode.FindSubNode(name);
|
|
698
|
+
if (index >= 0)
|
|
699
|
+
{
|
|
700
|
+
nextNode = &curNode.SubNodes[(unsigned)index];
|
|
701
|
+
newParts.Clear();
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (!nextNode)
|
|
706
|
+
{
|
|
707
|
+
if (!enterToSubFolders)
|
|
708
|
+
return S_OK;
|
|
709
|
+
|
|
710
|
+
#ifndef _WIN32
|
|
711
|
+
if (fi.IsPosixLink())
|
|
712
|
+
{
|
|
713
|
+
// here we can try to resolve posix link
|
|
714
|
+
// if the link to dir, then can we follow it
|
|
715
|
+
return S_OK; // we don't follow posix link
|
|
716
|
+
}
|
|
717
|
+
#else
|
|
718
|
+
if (dirItems.SymLinks && fi.HasReparsePoint())
|
|
719
|
+
{
|
|
720
|
+
/* 20.03: in SymLinks mode: we don't enter to directory that
|
|
721
|
+
has reparse point and has no CCensorNode
|
|
722
|
+
NOTE: (curNode and parent nodes) still can have wildcard rules
|
|
723
|
+
to include some items of target directory (of reparse point),
|
|
724
|
+
but we ignore these rules here.
|
|
725
|
+
*/
|
|
726
|
+
return S_OK;
|
|
727
|
+
}
|
|
728
|
+
#endif
|
|
729
|
+
nextNode = &curNode;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
return EnumerateDirItems_Spec(
|
|
733
|
+
*nextNode, phyParent, logParent, fi.Name,
|
|
734
|
+
phyPrefix, // without (fi.Name)
|
|
735
|
+
newParts, // relative to (*nextNode). (*nextNode + newParts) includes (fi.Name)
|
|
736
|
+
dirItems,
|
|
737
|
+
enterToSubFolders);
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
static bool CanUseFsDirect(const NWildcard::CCensorNode &curNode)
|
|
742
|
+
{
|
|
743
|
+
FOR_VECTOR (i, curNode.IncludeItems)
|
|
744
|
+
{
|
|
745
|
+
const NWildcard::CItem &item = curNode.IncludeItems[i];
|
|
746
|
+
if (item.Recursive || item.PathParts.Size() != 1)
|
|
747
|
+
return false;
|
|
748
|
+
const UString &name = item.PathParts.Front();
|
|
749
|
+
/*
|
|
750
|
+
if (name.IsEmpty())
|
|
751
|
+
return false;
|
|
752
|
+
*/
|
|
753
|
+
|
|
754
|
+
/* Windows doesn't support file name with wildcard
|
|
755
|
+
But if another system supports file name with wildcard,
|
|
756
|
+
and wildcard mode is disabled, we can ignore wildcard in name
|
|
757
|
+
*/
|
|
758
|
+
/*
|
|
759
|
+
#ifndef _WIN32
|
|
760
|
+
if (!item.WildcardParsing)
|
|
761
|
+
continue;
|
|
762
|
+
#endif
|
|
763
|
+
*/
|
|
764
|
+
if (DoesNameContainWildcard(name))
|
|
765
|
+
return false;
|
|
766
|
+
}
|
|
767
|
+
return true;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
772
|
+
|
|
773
|
+
static bool IsVirtualFsFolder(const FString &prefix, const UString &name)
|
|
774
|
+
{
|
|
775
|
+
UString s = fs2us(prefix);
|
|
776
|
+
s += name;
|
|
777
|
+
s.Add_PathSepar();
|
|
778
|
+
// it returns (true) for non real FS folder path like - "\\SERVER\"
|
|
779
|
+
return IsPathSepar(s[0]) && GetRootPrefixSize(s) == 0;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
#endif
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
static HRESULT EnumerateDirItems(
|
|
787
|
+
const NWildcard::CCensorNode &curNode,
|
|
788
|
+
const int phyParent, const int logParent, const FString &phyPrefix,
|
|
789
|
+
const UStringVector &addParts, // prefix from curNode including
|
|
790
|
+
CDirItems &dirItems,
|
|
791
|
+
bool enterToSubFolders)
|
|
792
|
+
{
|
|
793
|
+
if (!enterToSubFolders)
|
|
794
|
+
{
|
|
795
|
+
/* if there are IncludeItems censor rules that affect items in subdirs,
|
|
796
|
+
then we will enter to all subfolders */
|
|
797
|
+
if (curNode.NeedCheckSubDirs())
|
|
798
|
+
enterToSubFolders = true;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
RINOK(dirItems.ScanProgress(phyPrefix))
|
|
802
|
+
|
|
803
|
+
// try direct_names case at first
|
|
804
|
+
if (addParts.IsEmpty() && !enterToSubFolders)
|
|
805
|
+
{
|
|
806
|
+
if (CanUseFsDirect(curNode))
|
|
807
|
+
{
|
|
808
|
+
// all names are direct (no wildcards)
|
|
809
|
+
// so we don't need file_system's dir enumerator
|
|
810
|
+
CRecordVector<bool> needEnterVector;
|
|
811
|
+
unsigned i;
|
|
812
|
+
|
|
813
|
+
for (i = 0; i < curNode.IncludeItems.Size(); i++)
|
|
814
|
+
{
|
|
815
|
+
const NWildcard::CItem &item = curNode.IncludeItems[i];
|
|
816
|
+
const UString &name = item.PathParts.Front();
|
|
817
|
+
FString fullPath = phyPrefix + us2fs(name);
|
|
818
|
+
|
|
819
|
+
/*
|
|
820
|
+
// not possible now
|
|
821
|
+
if (!item.ForDir && !item.ForFile)
|
|
822
|
+
{
|
|
823
|
+
RINOK(dirItems.AddError(fullPath, ERROR_INVALID_PARAMETER));
|
|
824
|
+
continue;
|
|
825
|
+
}
|
|
826
|
+
*/
|
|
827
|
+
|
|
828
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
829
|
+
bool needAltStreams = true;
|
|
830
|
+
#endif
|
|
831
|
+
|
|
832
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
833
|
+
bool needSecurity = true;
|
|
834
|
+
#endif
|
|
835
|
+
|
|
836
|
+
if (phyPrefix.IsEmpty())
|
|
837
|
+
{
|
|
838
|
+
if (!item.ForFile)
|
|
839
|
+
{
|
|
840
|
+
/* we don't like some names for alt streams inside archive:
|
|
841
|
+
":sname" for "\"
|
|
842
|
+
"c:::sname" for "C:\"
|
|
843
|
+
So we ignore alt streams for these cases */
|
|
844
|
+
if (name.IsEmpty())
|
|
845
|
+
{
|
|
846
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
847
|
+
needAltStreams = false;
|
|
848
|
+
#endif
|
|
849
|
+
|
|
850
|
+
/*
|
|
851
|
+
// do we need to ignore security info for "\\" folder ?
|
|
852
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
853
|
+
needSecurity = false;
|
|
854
|
+
#endif
|
|
855
|
+
*/
|
|
856
|
+
|
|
857
|
+
fullPath = CHAR_PATH_SEPARATOR;
|
|
858
|
+
}
|
|
859
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
860
|
+
else if (item.IsDriveItem())
|
|
861
|
+
{
|
|
862
|
+
needAltStreams = false;
|
|
863
|
+
fullPath.Add_PathSepar();
|
|
864
|
+
}
|
|
865
|
+
#endif
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
NFind::CFileInfo fi;
|
|
870
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
871
|
+
if (IsVirtualFsFolder(phyPrefix, name))
|
|
872
|
+
{
|
|
873
|
+
fi.SetAsDir();
|
|
874
|
+
fi.Name = us2fs(name);
|
|
875
|
+
}
|
|
876
|
+
else
|
|
877
|
+
#endif
|
|
878
|
+
if (!FindFile_KeepDots(fi, fullPath FOLLOW_LINK_PARAM2))
|
|
879
|
+
{
|
|
880
|
+
RINOK(dirItems.AddError(fullPath))
|
|
881
|
+
continue;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/*
|
|
885
|
+
#ifdef _WIN32
|
|
886
|
+
#define MY_ERROR_IS_DIR ERROR_FILE_NOT_FOUND
|
|
887
|
+
#define MY_ERROR_NOT_DIR DI_DEFAULT_ERROR
|
|
888
|
+
#else
|
|
889
|
+
#define MY_ERROR_IS_DIR EISDIR
|
|
890
|
+
#define MY_ERROR_NOT_DIR ENOTDIR
|
|
891
|
+
#endif
|
|
892
|
+
*/
|
|
893
|
+
|
|
894
|
+
const bool isDir = fi.IsDir();
|
|
895
|
+
if (isDir ? !item.ForDir : !item.ForFile)
|
|
896
|
+
{
|
|
897
|
+
// RINOK(dirItems.AddError(fullPath, isDir ? MY_ERROR_IS_DIR: MY_ERROR_NOT_DIR));
|
|
898
|
+
RINOK(dirItems.AddError(fullPath, DI_DEFAULT_ERROR))
|
|
899
|
+
continue;
|
|
900
|
+
}
|
|
901
|
+
{
|
|
902
|
+
UStringVector pathParts;
|
|
903
|
+
pathParts.Add(fs2us(fi.Name));
|
|
904
|
+
if (curNode.CheckPathToRoot(false, pathParts, !isDir))
|
|
905
|
+
continue;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
if (dirItems.CanIncludeItem(fi.IsDir()))
|
|
910
|
+
{
|
|
911
|
+
int secureIndex = -1;
|
|
912
|
+
#ifdef Z7_USE_SECURITY_CODE
|
|
913
|
+
if (needSecurity && dirItems.ReadSecure)
|
|
914
|
+
{
|
|
915
|
+
RINOK(dirItems.AddSecurityItem(fullPath, secureIndex))
|
|
916
|
+
}
|
|
917
|
+
#endif
|
|
918
|
+
|
|
919
|
+
dirItems.AddDirFileInfo(phyParent, logParent, secureIndex, fi);
|
|
920
|
+
|
|
921
|
+
// we don't scan AltStreams for link files
|
|
922
|
+
|
|
923
|
+
#if !defined(UNDER_CE)
|
|
924
|
+
{
|
|
925
|
+
CDirItem &dirItem = dirItems.Items.Back();
|
|
926
|
+
RINOK(dirItems.SetLinkInfo(dirItem, fi, phyPrefix))
|
|
927
|
+
if (dirItem.ReparseData.Size() != 0)
|
|
928
|
+
continue;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
#if defined(_WIN32)
|
|
932
|
+
if (needAltStreams && dirItems.ScanAltStreams && !fi.IsAltStream)
|
|
933
|
+
{
|
|
934
|
+
UStringVector pathParts;
|
|
935
|
+
pathParts.Add(fs2us(fi.Name));
|
|
936
|
+
RINOK(EnumerateAltStreams(fi, curNode, phyParent, logParent,
|
|
937
|
+
fullPath, // including (name)
|
|
938
|
+
pathParts, // including (fi.Name)
|
|
939
|
+
true, /* addAllSubStreams */
|
|
940
|
+
dirItems))
|
|
941
|
+
}
|
|
942
|
+
#endif // defined(_WIN32)
|
|
943
|
+
|
|
944
|
+
#endif // !defined(UNDER_CE)
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
#ifndef _WIN32
|
|
949
|
+
if (!fi.IsPosixLink()) // posix link can follow to dir
|
|
950
|
+
#endif
|
|
951
|
+
if (!isDir)
|
|
952
|
+
continue;
|
|
953
|
+
|
|
954
|
+
UStringVector newParts;
|
|
955
|
+
const NWildcard::CCensorNode *nextNode = NULL;
|
|
956
|
+
int index = curNode.FindSubNode(name);
|
|
957
|
+
if (index >= 0)
|
|
958
|
+
{
|
|
959
|
+
for (int t = (int)needEnterVector.Size(); t <= index; t++)
|
|
960
|
+
needEnterVector.Add(true);
|
|
961
|
+
needEnterVector[(unsigned)index] = false;
|
|
962
|
+
nextNode = &curNode.SubNodes[(unsigned)index];
|
|
963
|
+
}
|
|
964
|
+
else
|
|
965
|
+
{
|
|
966
|
+
#ifndef _WIN32
|
|
967
|
+
if (fi.IsPosixLink())
|
|
968
|
+
{
|
|
969
|
+
// here we can try to resolve posix link
|
|
970
|
+
// if the link to dir, then can we follow it
|
|
971
|
+
continue; // we don't follow posix link
|
|
972
|
+
}
|
|
973
|
+
#else
|
|
974
|
+
if (dirItems.SymLinks)
|
|
975
|
+
{
|
|
976
|
+
if (fi.HasReparsePoint())
|
|
977
|
+
{
|
|
978
|
+
/* 20.03: in SymLinks mode: we don't enter to directory that
|
|
979
|
+
has reparse point and has no CCensorNode */
|
|
980
|
+
continue;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
#endif
|
|
984
|
+
nextNode = &curNode;
|
|
985
|
+
newParts.Add(name); // don't change it to fi.Name. It's for shortnames support
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
RINOK(EnumerateDirItems_Spec(*nextNode, phyParent, logParent, fi.Name, phyPrefix,
|
|
989
|
+
newParts, dirItems, true))
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
for (i = 0; i < curNode.SubNodes.Size(); i++)
|
|
993
|
+
{
|
|
994
|
+
if (i < needEnterVector.Size())
|
|
995
|
+
if (!needEnterVector[i])
|
|
996
|
+
continue;
|
|
997
|
+
const NWildcard::CCensorNode &nextNode = curNode.SubNodes[i];
|
|
998
|
+
FString fullPath = phyPrefix + us2fs(nextNode.Name);
|
|
999
|
+
NFind::CFileInfo fi;
|
|
1000
|
+
|
|
1001
|
+
if (nextNode.Name.IsEmpty())
|
|
1002
|
+
{
|
|
1003
|
+
if (phyPrefix.IsEmpty())
|
|
1004
|
+
fullPath = CHAR_PATH_SEPARATOR;
|
|
1005
|
+
}
|
|
1006
|
+
#ifdef _WIN32
|
|
1007
|
+
else if(phyPrefix.IsEmpty()
|
|
1008
|
+
|| (phyPrefix.Len() == NName::kSuperPathPrefixSize
|
|
1009
|
+
&& IsSuperPath(phyPrefix)))
|
|
1010
|
+
{
|
|
1011
|
+
if (NWildcard::IsDriveColonName(nextNode.Name))
|
|
1012
|
+
fullPath.Add_PathSepar();
|
|
1013
|
+
}
|
|
1014
|
+
#endif
|
|
1015
|
+
|
|
1016
|
+
// we don't want to call fi.Find() for root folder or virtual folder
|
|
1017
|
+
if ((phyPrefix.IsEmpty() && nextNode.Name.IsEmpty())
|
|
1018
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
1019
|
+
|| IsVirtualFsFolder(phyPrefix, nextNode.Name)
|
|
1020
|
+
#endif
|
|
1021
|
+
)
|
|
1022
|
+
{
|
|
1023
|
+
fi.SetAsDir();
|
|
1024
|
+
fi.Name = us2fs(nextNode.Name);
|
|
1025
|
+
}
|
|
1026
|
+
else
|
|
1027
|
+
{
|
|
1028
|
+
if (!FindFile_KeepDots(fi, fullPath FOLLOW_LINK_PARAM2))
|
|
1029
|
+
{
|
|
1030
|
+
if (!nextNode.AreThereIncludeItems())
|
|
1031
|
+
continue;
|
|
1032
|
+
RINOK(dirItems.AddError(fullPath))
|
|
1033
|
+
continue;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
if (!fi.IsDir())
|
|
1037
|
+
{
|
|
1038
|
+
RINOK(dirItems.AddError(fullPath, DI_DEFAULT_ERROR))
|
|
1039
|
+
continue;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
RINOK(EnumerateDirItems_Spec(nextNode, phyParent, logParent, fi.Name, phyPrefix,
|
|
1044
|
+
UStringVector(), dirItems, false))
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
return S_OK;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
#ifdef _WIN32
|
|
1052
|
+
#ifndef UNDER_CE
|
|
1053
|
+
|
|
1054
|
+
// scan drives, if wildcard is "*:\"
|
|
1055
|
+
|
|
1056
|
+
if (phyPrefix.IsEmpty() && curNode.IncludeItems.Size() > 0)
|
|
1057
|
+
{
|
|
1058
|
+
unsigned i;
|
|
1059
|
+
for (i = 0; i < curNode.IncludeItems.Size(); i++)
|
|
1060
|
+
{
|
|
1061
|
+
const NWildcard::CItem &item = curNode.IncludeItems[i];
|
|
1062
|
+
if (item.PathParts.Size() < 1)
|
|
1063
|
+
break;
|
|
1064
|
+
const UString &name = item.PathParts.Front();
|
|
1065
|
+
if (name.Len() != 2 || name[1] != ':')
|
|
1066
|
+
break;
|
|
1067
|
+
if (item.PathParts.Size() == 1)
|
|
1068
|
+
if (item.ForFile || !item.ForDir)
|
|
1069
|
+
break;
|
|
1070
|
+
if (NWildcard::IsDriveColonName(name))
|
|
1071
|
+
continue;
|
|
1072
|
+
if (name[0] != '*' && name[0] != '?')
|
|
1073
|
+
break;
|
|
1074
|
+
}
|
|
1075
|
+
if (i == curNode.IncludeItems.Size())
|
|
1076
|
+
{
|
|
1077
|
+
FStringVector driveStrings;
|
|
1078
|
+
NFind::MyGetLogicalDriveStrings(driveStrings);
|
|
1079
|
+
for (i = 0; i < driveStrings.Size(); i++)
|
|
1080
|
+
{
|
|
1081
|
+
FString driveName = driveStrings[i];
|
|
1082
|
+
if (driveName.Len() < 3 || driveName.Back() != '\\')
|
|
1083
|
+
return E_FAIL;
|
|
1084
|
+
driveName.DeleteBack();
|
|
1085
|
+
NFind::CFileInfo fi;
|
|
1086
|
+
fi.SetAsDir();
|
|
1087
|
+
fi.Name = driveName;
|
|
1088
|
+
|
|
1089
|
+
RINOK(EnumerateForItem(fi, curNode, phyParent, logParent, phyPrefix,
|
|
1090
|
+
addParts, dirItems, enterToSubFolders))
|
|
1091
|
+
}
|
|
1092
|
+
return S_OK;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
#endif
|
|
1097
|
+
#endif
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
CObjectVector<NFind::CFileInfo> files;
|
|
1101
|
+
|
|
1102
|
+
// for (int y = 0; y < 1; y++)
|
|
1103
|
+
{
|
|
1104
|
+
// files.Clear();
|
|
1105
|
+
RINOK(dirItems.EnumerateOneDir(phyPrefix, files))
|
|
1106
|
+
/*
|
|
1107
|
+
FOR_VECTOR (i, files)
|
|
1108
|
+
{
|
|
1109
|
+
#ifdef _WIN32
|
|
1110
|
+
// const NFind::CFileInfo &fi = files[i];
|
|
1111
|
+
#else
|
|
1112
|
+
NFind::CFileInfo &fi = files[i];
|
|
1113
|
+
{
|
|
1114
|
+
const NFind::CFileInfo &di = files[i];
|
|
1115
|
+
const FString path = phyPrefix + di.Name;
|
|
1116
|
+
if (!fi.Find_AfterEnumerator(path))
|
|
1117
|
+
{
|
|
1118
|
+
RINOK(dirItems.AddError(path));
|
|
1119
|
+
continue;
|
|
1120
|
+
}
|
|
1121
|
+
fi.Name = di.Name;
|
|
1122
|
+
}
|
|
1123
|
+
#endif
|
|
1124
|
+
|
|
1125
|
+
}
|
|
1126
|
+
*/
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
FOR_VECTOR (i, files)
|
|
1130
|
+
{
|
|
1131
|
+
#ifdef _WIN32
|
|
1132
|
+
const NFind::CFileInfo &fi = files[i];
|
|
1133
|
+
#else
|
|
1134
|
+
const NFind::CFileInfo &fi = files[i];
|
|
1135
|
+
/*
|
|
1136
|
+
NFind::CFileInfo fi;
|
|
1137
|
+
{
|
|
1138
|
+
const NFind::CDirEntry &di = files[i];
|
|
1139
|
+
const FString path = phyPrefix + di.Name;
|
|
1140
|
+
if (!fi.Find_AfterEnumerator(path))
|
|
1141
|
+
{
|
|
1142
|
+
RINOK(dirItems.AddError(path));
|
|
1143
|
+
continue;
|
|
1144
|
+
}
|
|
1145
|
+
fi.Name = di.Name;
|
|
1146
|
+
}
|
|
1147
|
+
*/
|
|
1148
|
+
#endif
|
|
1149
|
+
|
|
1150
|
+
RINOK(EnumerateForItem(fi, curNode, phyParent, logParent, phyPrefix,
|
|
1151
|
+
addParts, dirItems, enterToSubFolders))
|
|
1152
|
+
if (dirItems.Callback && (i & kScanProgressStepMask) == kScanProgressStepMask)
|
|
1153
|
+
{
|
|
1154
|
+
RINOK(dirItems.ScanProgress(phyPrefix))
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
return S_OK;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
|
|
1164
|
+
HRESULT EnumerateItems(
|
|
1165
|
+
const NWildcard::CCensor &censor,
|
|
1166
|
+
const NWildcard::ECensorPathMode pathMode,
|
|
1167
|
+
const UString &addPathPrefix, // prefix that will be added to Logical Path
|
|
1168
|
+
CDirItems &dirItems)
|
|
1169
|
+
{
|
|
1170
|
+
FOR_VECTOR (i, censor.Pairs)
|
|
1171
|
+
{
|
|
1172
|
+
const NWildcard::CPair &pair = censor.Pairs[i];
|
|
1173
|
+
const int phyParent = pair.Prefix.IsEmpty() ? -1 : (int)dirItems.AddPrefix(-1, -1, pair.Prefix);
|
|
1174
|
+
int logParent = -1;
|
|
1175
|
+
|
|
1176
|
+
if (pathMode == NWildcard::k_AbsPath)
|
|
1177
|
+
logParent = phyParent;
|
|
1178
|
+
else
|
|
1179
|
+
{
|
|
1180
|
+
if (!addPathPrefix.IsEmpty())
|
|
1181
|
+
logParent = (int)dirItems.AddPrefix(-1, -1, addPathPrefix);
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
RINOK(EnumerateDirItems(pair.Head, phyParent, logParent, us2fs(pair.Prefix), UStringVector(),
|
|
1185
|
+
dirItems,
|
|
1186
|
+
false // enterToSubFolders
|
|
1187
|
+
))
|
|
1188
|
+
}
|
|
1189
|
+
dirItems.ReserveDown();
|
|
1190
|
+
|
|
1191
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
1192
|
+
RINOK(dirItems.FillFixedReparse())
|
|
1193
|
+
#endif
|
|
1194
|
+
|
|
1195
|
+
#ifndef _WIN32
|
|
1196
|
+
RINOK(dirItems.FillDeviceSizes())
|
|
1197
|
+
#endif
|
|
1198
|
+
|
|
1199
|
+
return S_OK;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
1204
|
+
|
|
1205
|
+
HRESULT CDirItems::FillFixedReparse()
|
|
1206
|
+
{
|
|
1207
|
+
FOR_VECTOR(i, Items)
|
|
1208
|
+
{
|
|
1209
|
+
CDirItem &item = Items[i];
|
|
1210
|
+
|
|
1211
|
+
if (!SymLinks)
|
|
1212
|
+
{
|
|
1213
|
+
// continue; // for debug
|
|
1214
|
+
if (!item.Has_Attrib_ReparsePoint())
|
|
1215
|
+
continue;
|
|
1216
|
+
/*
|
|
1217
|
+
We want to get properties of target file instead of properies of symbolic link.
|
|
1218
|
+
Probably this code is unused, because
|
|
1219
|
+
CFileInfo::Find(with followLink = true) called Fill_From_ByHandleFileInfo() already.
|
|
1220
|
+
*/
|
|
1221
|
+
// if (item.IsDir()) continue;
|
|
1222
|
+
const FString phyPath = GetPhyPath(i);
|
|
1223
|
+
NFind::CFileInfo fi;
|
|
1224
|
+
if (fi.Fill_From_ByHandleFileInfo(phyPath)) // item.IsDir()
|
|
1225
|
+
{
|
|
1226
|
+
item.Size = fi.Size;
|
|
1227
|
+
item.CTime = fi.CTime;
|
|
1228
|
+
item.ATime = fi.ATime;
|
|
1229
|
+
item.MTime = fi.MTime;
|
|
1230
|
+
item.Attrib = fi.Attrib;
|
|
1231
|
+
continue;
|
|
1232
|
+
}
|
|
1233
|
+
RINOK(AddError(phyPath))
|
|
1234
|
+
continue;
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
// (SymLinks == true)
|
|
1238
|
+
if (item.ReparseData.Size() == 0)
|
|
1239
|
+
continue;
|
|
1240
|
+
// if (item.Size == 0)
|
|
1241
|
+
{
|
|
1242
|
+
// 20.03: we use Reparse Data instead of real data
|
|
1243
|
+
item.Size = item.ReparseData.Size();
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
CReparseAttr attr;
|
|
1247
|
+
if (!attr.Parse(item.ReparseData, item.ReparseData.Size()))
|
|
1248
|
+
{
|
|
1249
|
+
const FString phyPath = GetPhyPath(i);
|
|
1250
|
+
AddError(phyPath, attr.ErrorCode);
|
|
1251
|
+
continue;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
/* imagex/WIM reduces absolute paths in links (raparse data),
|
|
1255
|
+
if we archive non root folder. We do same thing here */
|
|
1256
|
+
|
|
1257
|
+
// bool isWSL = false;
|
|
1258
|
+
if (attr.IsSymLink_WSL())
|
|
1259
|
+
{
|
|
1260
|
+
// isWSL = true;
|
|
1261
|
+
// we don't change WSL symlinks
|
|
1262
|
+
continue;
|
|
1263
|
+
}
|
|
1264
|
+
else
|
|
1265
|
+
{
|
|
1266
|
+
if (attr.IsRelative_Win())
|
|
1267
|
+
continue;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
const UString &link = attr.GetPath();
|
|
1271
|
+
if (!IsDrivePath(link))
|
|
1272
|
+
continue;
|
|
1273
|
+
// maybe we need to support networks paths also ?
|
|
1274
|
+
|
|
1275
|
+
FString fullPathF;
|
|
1276
|
+
if (!NDir::MyGetFullPathName(GetPhyPath(i), fullPathF))
|
|
1277
|
+
continue;
|
|
1278
|
+
const UString fullPath = fs2us(fullPathF);
|
|
1279
|
+
const UString logPath = GetLogPath(i);
|
|
1280
|
+
if (logPath.Len() >= fullPath.Len())
|
|
1281
|
+
continue;
|
|
1282
|
+
if (CompareFileNames(logPath, fullPath.RightPtr(logPath.Len())) != 0)
|
|
1283
|
+
continue;
|
|
1284
|
+
|
|
1285
|
+
const UString prefix = fullPath.Left(fullPath.Len() - logPath.Len());
|
|
1286
|
+
if (!IsPathSepar(prefix.Back()))
|
|
1287
|
+
continue;
|
|
1288
|
+
|
|
1289
|
+
const unsigned rootPrefixSize = GetRootPrefixSize(prefix);
|
|
1290
|
+
if (rootPrefixSize == 0)
|
|
1291
|
+
continue;
|
|
1292
|
+
if (rootPrefixSize == prefix.Len())
|
|
1293
|
+
continue; // simple case: paths are from root
|
|
1294
|
+
if (link.Len() <= prefix.Len())
|
|
1295
|
+
continue;
|
|
1296
|
+
if (CompareFileNames(link.Left(prefix.Len()), prefix) != 0)
|
|
1297
|
+
continue;
|
|
1298
|
+
|
|
1299
|
+
UString newLink = prefix.Left(rootPrefixSize);
|
|
1300
|
+
newLink += link.Ptr(prefix.Len());
|
|
1301
|
+
|
|
1302
|
+
CByteBuffer &data = item.ReparseData2;
|
|
1303
|
+
/*
|
|
1304
|
+
if (isWSL)
|
|
1305
|
+
{
|
|
1306
|
+
Convert_WinPath_to_WslLinuxPath(newLink, true); // is absolute : change it
|
|
1307
|
+
FillLinkData_WslLink(data, newLink);
|
|
1308
|
+
}
|
|
1309
|
+
else
|
|
1310
|
+
*/
|
|
1311
|
+
FillLinkData_WinLink(data, newLink, !attr.IsMountPoint());
|
|
1312
|
+
if (data.Size() == 0)
|
|
1313
|
+
continue;
|
|
1314
|
+
// item.ReparseData2 = data;
|
|
1315
|
+
}
|
|
1316
|
+
return S_OK;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
#endif
|
|
1320
|
+
|
|
1321
|
+
|
|
1322
|
+
#ifndef _WIN32
|
|
1323
|
+
|
|
1324
|
+
HRESULT CDirItems::FillDeviceSizes()
|
|
1325
|
+
{
|
|
1326
|
+
{
|
|
1327
|
+
FOR_VECTOR (i, Items)
|
|
1328
|
+
{
|
|
1329
|
+
CDirItem &item = Items[i];
|
|
1330
|
+
|
|
1331
|
+
if (S_ISBLK(item.mode) && item.Size == 0)
|
|
1332
|
+
{
|
|
1333
|
+
const FString phyPath = GetPhyPath(i);
|
|
1334
|
+
NIO::CInFile inFile;
|
|
1335
|
+
inFile.PreserveATime = true;
|
|
1336
|
+
if (inFile.OpenShared(phyPath, ShareForWrite)) // fixme: OpenShared ??
|
|
1337
|
+
{
|
|
1338
|
+
UInt64 size = 0;
|
|
1339
|
+
if (inFile.GetLength(size))
|
|
1340
|
+
item.Size = size;
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
if (StoreOwnerName)
|
|
1344
|
+
{
|
|
1345
|
+
OwnerNameMap.Add_UInt32(item.uid);
|
|
1346
|
+
OwnerGroupMap.Add_UInt32(item.gid);
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
if (StoreOwnerName)
|
|
1352
|
+
{
|
|
1353
|
+
UString u;
|
|
1354
|
+
AString a;
|
|
1355
|
+
{
|
|
1356
|
+
FOR_VECTOR (i, OwnerNameMap.Numbers)
|
|
1357
|
+
{
|
|
1358
|
+
// 200K/sec speed
|
|
1359
|
+
u.Empty();
|
|
1360
|
+
const passwd *pw = getpwuid(OwnerNameMap.Numbers[i]);
|
|
1361
|
+
// printf("\ngetpwuid=%s\n", pw->pw_name);
|
|
1362
|
+
if (pw)
|
|
1363
|
+
{
|
|
1364
|
+
a = pw->pw_name;
|
|
1365
|
+
ConvertUTF8ToUnicode(a, u);
|
|
1366
|
+
}
|
|
1367
|
+
OwnerNameMap.Strings.Add(u);
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
{
|
|
1371
|
+
FOR_VECTOR (i, OwnerGroupMap.Numbers)
|
|
1372
|
+
{
|
|
1373
|
+
u.Empty();
|
|
1374
|
+
const group *gr = getgrgid(OwnerGroupMap.Numbers[i]);
|
|
1375
|
+
if (gr)
|
|
1376
|
+
{
|
|
1377
|
+
// printf("\ngetgrgid %d %s\n", OwnerGroupMap.Numbers[i], gr->gr_name);
|
|
1378
|
+
a = gr->gr_name;
|
|
1379
|
+
ConvertUTF8ToUnicode(a, u);
|
|
1380
|
+
}
|
|
1381
|
+
OwnerGroupMap.Strings.Add(u);
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
FOR_VECTOR (i, Items)
|
|
1386
|
+
{
|
|
1387
|
+
CDirItem &item = Items[i];
|
|
1388
|
+
{
|
|
1389
|
+
const int index = OwnerNameMap.Find(item.uid);
|
|
1390
|
+
if (index < 0) throw 1;
|
|
1391
|
+
item.OwnerNameIndex = index;
|
|
1392
|
+
}
|
|
1393
|
+
{
|
|
1394
|
+
const int index = OwnerGroupMap.Find(item.gid);
|
|
1395
|
+
if (index < 0) throw 1;
|
|
1396
|
+
item.OwnerGroupIndex = index;
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
|
|
1402
|
+
// if (NeedOwnerNames)
|
|
1403
|
+
{
|
|
1404
|
+
/*
|
|
1405
|
+
{
|
|
1406
|
+
for (unsigned i = 0 ; i < 10000; i++)
|
|
1407
|
+
{
|
|
1408
|
+
const passwd *pw = getpwuid(i);
|
|
1409
|
+
if (pw)
|
|
1410
|
+
{
|
|
1411
|
+
UString u;
|
|
1412
|
+
ConvertUTF8ToUnicode(AString(pw->pw_name), u);
|
|
1413
|
+
OwnerNameMap.Add(i, u);
|
|
1414
|
+
OwnerNameMap.Add(i, u);
|
|
1415
|
+
OwnerNameMap.Add(i, u);
|
|
1416
|
+
}
|
|
1417
|
+
const group *gr = getgrgid(i);
|
|
1418
|
+
if (gr)
|
|
1419
|
+
{
|
|
1420
|
+
// we can use utf-8 here.
|
|
1421
|
+
UString u;
|
|
1422
|
+
ConvertUTF8ToUnicode(AString(gr->gr_name), u);
|
|
1423
|
+
OwnerGroupMap.Add(i, u);
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
*/
|
|
1428
|
+
/*
|
|
1429
|
+
{
|
|
1430
|
+
FOR_VECTOR (i, OwnerNameMap.Strings)
|
|
1431
|
+
{
|
|
1432
|
+
AString s;
|
|
1433
|
+
ConvertUnicodeToUTF8(OwnerNameMap.Strings[i], s);
|
|
1434
|
+
printf("\n%5d %s", (unsigned)OwnerNameMap.Numbers[i], s.Ptr());
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
{
|
|
1438
|
+
printf("\n\n=========Groups\n");
|
|
1439
|
+
FOR_VECTOR (i, OwnerGroupMap.Strings)
|
|
1440
|
+
{
|
|
1441
|
+
AString s;
|
|
1442
|
+
ConvertUnicodeToUTF8(OwnerGroupMap.Strings[i], s);
|
|
1443
|
+
printf("\n%5d %s", (unsigned)OwnerGroupMap.Numbers[i], s.Ptr());
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
*/
|
|
1447
|
+
}
|
|
1448
|
+
/*
|
|
1449
|
+
for (unsigned i = 0 ; i < 100000000; i++)
|
|
1450
|
+
{
|
|
1451
|
+
// const passwd *pw = getpwuid(1000);
|
|
1452
|
+
// pw = pw;
|
|
1453
|
+
int pos = OwnerNameMap.Find(1000);
|
|
1454
|
+
if (pos < 0 - (int)i)
|
|
1455
|
+
throw 1;
|
|
1456
|
+
}
|
|
1457
|
+
*/
|
|
1458
|
+
|
|
1459
|
+
return S_OK;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
#endif
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
static const char * const kCannotFindArchive = "Cannot find archive";
|
|
1467
|
+
|
|
1468
|
+
HRESULT EnumerateDirItemsAndSort(
|
|
1469
|
+
NWildcard::CCensor &censor,
|
|
1470
|
+
NWildcard::ECensorPathMode censorPathMode,
|
|
1471
|
+
const UString &addPathPrefix,
|
|
1472
|
+
UStringVector &sortedPaths,
|
|
1473
|
+
UStringVector &sortedFullPaths,
|
|
1474
|
+
CDirItemsStat &st,
|
|
1475
|
+
IDirItemsCallback *callback)
|
|
1476
|
+
{
|
|
1477
|
+
FStringVector paths;
|
|
1478
|
+
|
|
1479
|
+
{
|
|
1480
|
+
CDirItems dirItems;
|
|
1481
|
+
dirItems.Callback = callback;
|
|
1482
|
+
{
|
|
1483
|
+
HRESULT res = EnumerateItems(censor, censorPathMode, addPathPrefix, dirItems);
|
|
1484
|
+
st = dirItems.Stat;
|
|
1485
|
+
RINOK(res)
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
FOR_VECTOR (i, dirItems.Items)
|
|
1489
|
+
{
|
|
1490
|
+
const CDirItem &dirItem = dirItems.Items[i];
|
|
1491
|
+
if (!dirItem.IsDir())
|
|
1492
|
+
paths.Add(dirItems.GetPhyPath(i));
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
if (paths.Size() == 0)
|
|
1497
|
+
{
|
|
1498
|
+
// return S_OK;
|
|
1499
|
+
throw CMessagePathException(kCannotFindArchive);
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
UStringVector fullPaths;
|
|
1503
|
+
|
|
1504
|
+
unsigned i;
|
|
1505
|
+
|
|
1506
|
+
for (i = 0; i < paths.Size(); i++)
|
|
1507
|
+
{
|
|
1508
|
+
FString fullPath;
|
|
1509
|
+
NFile::NDir::MyGetFullPathName(paths[i], fullPath);
|
|
1510
|
+
fullPaths.Add(fs2us(fullPath));
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
CUIntVector indices;
|
|
1514
|
+
SortFileNames(fullPaths, indices);
|
|
1515
|
+
sortedPaths.ClearAndReserve(indices.Size());
|
|
1516
|
+
sortedFullPaths.ClearAndReserve(indices.Size());
|
|
1517
|
+
|
|
1518
|
+
for (i = 0; i < indices.Size(); i++)
|
|
1519
|
+
{
|
|
1520
|
+
unsigned index = indices[i];
|
|
1521
|
+
sortedPaths.AddInReserved(fs2us(paths[index]));
|
|
1522
|
+
sortedFullPaths.AddInReserved(fullPaths[index]);
|
|
1523
|
+
if (i > 0 && CompareFileNames(sortedFullPaths[i], sortedFullPaths[i - 1]) == 0)
|
|
1524
|
+
throw CMessagePathException("Duplicate archive path:", sortedFullPaths[i]);
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
return S_OK;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
#ifdef _WIN32
|
|
1534
|
+
|
|
1535
|
+
static bool IsDotsName(const wchar_t *s)
|
|
1536
|
+
{
|
|
1537
|
+
return s[0] == '.' && (s[1] == 0 || (s[1] == '.' && s[2] == 0));
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
// This code converts all short file names to long file names.
|
|
1541
|
+
|
|
1542
|
+
static void ConvertToLongName(const UString &prefix, UString &name)
|
|
1543
|
+
{
|
|
1544
|
+
if (name.IsEmpty()
|
|
1545
|
+
|| DoesNameContainWildcard(name)
|
|
1546
|
+
|| IsDotsName(name))
|
|
1547
|
+
return;
|
|
1548
|
+
NFind::CFileInfo fi;
|
|
1549
|
+
const FString path (us2fs(prefix + name));
|
|
1550
|
+
#ifndef UNDER_CE
|
|
1551
|
+
if (NFile::NName::IsDevicePath(path))
|
|
1552
|
+
return;
|
|
1553
|
+
#endif
|
|
1554
|
+
if (fi.Find(path))
|
|
1555
|
+
name = fs2us(fi.Name);
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
static void ConvertToLongNames(const UString &prefix, CObjectVector<NWildcard::CItem> &items)
|
|
1559
|
+
{
|
|
1560
|
+
FOR_VECTOR (i, items)
|
|
1561
|
+
{
|
|
1562
|
+
NWildcard::CItem &item = items[i];
|
|
1563
|
+
if (item.Recursive || item.PathParts.Size() != 1)
|
|
1564
|
+
continue;
|
|
1565
|
+
if (prefix.IsEmpty() && item.IsDriveItem())
|
|
1566
|
+
continue;
|
|
1567
|
+
ConvertToLongName(prefix, item.PathParts.Front());
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
static void ConvertToLongNames(const UString &prefix, NWildcard::CCensorNode &node)
|
|
1572
|
+
{
|
|
1573
|
+
ConvertToLongNames(prefix, node.IncludeItems);
|
|
1574
|
+
ConvertToLongNames(prefix, node.ExcludeItems);
|
|
1575
|
+
unsigned i;
|
|
1576
|
+
for (i = 0; i < node.SubNodes.Size(); i++)
|
|
1577
|
+
{
|
|
1578
|
+
UString &name = node.SubNodes[i].Name;
|
|
1579
|
+
if (prefix.IsEmpty() && NWildcard::IsDriveColonName(name))
|
|
1580
|
+
continue;
|
|
1581
|
+
ConvertToLongName(prefix, name);
|
|
1582
|
+
}
|
|
1583
|
+
// mix folders with same name
|
|
1584
|
+
for (i = 0; i < node.SubNodes.Size(); i++)
|
|
1585
|
+
{
|
|
1586
|
+
NWildcard::CCensorNode &nextNode1 = node.SubNodes[i];
|
|
1587
|
+
for (unsigned j = i + 1; j < node.SubNodes.Size();)
|
|
1588
|
+
{
|
|
1589
|
+
const NWildcard::CCensorNode &nextNode2 = node.SubNodes[j];
|
|
1590
|
+
if (nextNode1.Name.IsEqualTo_NoCase(nextNode2.Name))
|
|
1591
|
+
{
|
|
1592
|
+
nextNode1.IncludeItems += nextNode2.IncludeItems;
|
|
1593
|
+
nextNode1.ExcludeItems += nextNode2.ExcludeItems;
|
|
1594
|
+
node.SubNodes.Delete(j);
|
|
1595
|
+
}
|
|
1596
|
+
else
|
|
1597
|
+
j++;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
for (i = 0; i < node.SubNodes.Size(); i++)
|
|
1601
|
+
{
|
|
1602
|
+
NWildcard::CCensorNode &nextNode = node.SubNodes[i];
|
|
1603
|
+
ConvertToLongNames(prefix + nextNode.Name + WCHAR_PATH_SEPARATOR, nextNode);
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
void ConvertToLongNames(NWildcard::CCensor &censor)
|
|
1608
|
+
{
|
|
1609
|
+
FOR_VECTOR (i, censor.Pairs)
|
|
1610
|
+
{
|
|
1611
|
+
NWildcard::CPair &pair = censor.Pairs[i];
|
|
1612
|
+
ConvertToLongNames(pair.Prefix, pair.Head);
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
#endif
|
|
1617
|
+
|
|
1618
|
+
|
|
1619
|
+
CMessagePathException::CMessagePathException(const char *a, const wchar_t *u)
|
|
1620
|
+
{
|
|
1621
|
+
(*this) += a;
|
|
1622
|
+
if (u)
|
|
1623
|
+
{
|
|
1624
|
+
Add_LF();
|
|
1625
|
+
(*this) += u;
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
CMessagePathException::CMessagePathException(const wchar_t *a, const wchar_t *u)
|
|
1630
|
+
{
|
|
1631
|
+
(*this) += a;
|
|
1632
|
+
if (u)
|
|
1633
|
+
{
|
|
1634
|
+
Add_LF();
|
|
1635
|
+
(*this) += u;
|
|
1636
|
+
}
|
|
1637
|
+
}
|