用于分割或合并文件的命令行脚本

file-split-merge的Python项目详细描述


文件拆分和合并

分割或合并文件的命令行脚本

travis-imagepypi-image

安装

使用pip安装:

$ pip install file_split_merge

使用

文件分割合并

此脚本用于拆分、合并或合并文件

^{pr2}$

分割还创建了一个额外的文件.CRC。然后在合并时进行比较,以检查合并是否成功 注意:这不是CRC检查,但有助于确保文件正确合并

Examples :

python file_split_merge -s -i "New folder\first_project.zip" -n 700kb

output
Splitting the File Now
Total file Size : 8162474
Splitting into 12 files of 700kb size
Creating New folder\first_project.zip-1.ros
Creating New folder\first_project.zip-2.ros
Creating New folder\first_project.zip-3.ros
Creating New folder\first_project.zip-4.ros
Creating New folder\first_project.zip-5.ros
Creating New folder\first_project.zip-6.ros
Creating New folder\first_project.zip-7.ros
Creating New folder\first_project.zip-8.ros
Creating New folder\first_project.zip-9.ros
Creating New folder\first_project.zip-10.ros
Creating New folder\first_project.zip-11.ros
Creating New folder\first_project.zip-12.ros
Creating the check file : New folder\first_project.zip-CRC.ros
File split successfully

python file_split_merge -m -i "New folder\first_project.zip"
Merging the file to New folder\first_project.zip
File Already Exist. Please remove the C:\Roshan\ZIP\New folder\first_project.zip and then re-run.

Do you want to remove the file [Y/N] : y
Merging the file first_project.zip-1.ros
Merging the file first_project.zip-2.ros
Merging the file first_project.zip-3.ros
Merging the file first_project.zip-4.ros
Merging the file first_project.zip-5.ros
Merging the file first_project.zip-6.ros
Merging the file first_project.zip-7.ros
Merging the file first_project.zip-8.ros
Merging the file first_project.zip-9.ros
Merging the file first_project.zip-10.ros
Merging the file first_project.zip-11.ros
Merging the file first_project.zip-12.ros
Checking if the files are merged properly
File check : Passed
File Merged successfully

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为什么maven enforcer插件在maven版本3.6.1中失败,但在3.6.2中通过?   尝试从字符串获取日期时发生java ParseException   java使用ArrayList查找匹配的值。contains()并将其从ArrayList中删除   javascript UTF8编码在飞碟中不起作用   java Android:设备启动时是否可以访问数据库?   java如何在蛇游戏中创建网格   java颜色背景不起作用   java是否可以使用实例pojo与JDBC模板一起插入?   在Tomcat WebApp中运行的Java代码比从JVM调用时运行得慢得多   java GUI添加了组件,但没有显示空白框架   java计算圆中的每个笛卡尔点   sockets Java应用程序在中挂起。hasNext();   雅加达ee Java ee 7批处理API MultiResourceItemReader对应项   java获取当前jsp中的完整文件路径   java字符串数组添加重复项