-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leo
committed
Oct 25, 2024
1 parent
d519e48
commit 71bcaf0
Showing
2 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* 小瓶RPA演示demo,具体api请查看*流程开发文档* | ||
* 官网:https://rpa.pbottle.com/ | ||
* 流程开发文档:https://gitee.com/pbottle/pbottle-rpa/wikis/pages | ||
*/ | ||
const pbottleRPA = require('./pbottleRPA') | ||
const fs = require("fs"); | ||
|
||
|
||
pbottleRPA.log('压缩文件测试') | ||
pbottleRPA.zipDir(pbottleRPA.__dirname+'/input',pbottleRPA.__dirname+'/目标压缩包.zip') | ||
pbottleRPA.wait(2) | ||
|
||
|
||
console.log('监测压缩结果'); | ||
if (!fs.existsSync(pbottleRPA.__dirname+'/目标压缩包.zip')) { | ||
pbottleRPA.exit('未检测到,退出!~') | ||
} | ||
|
||
|
||
console.log('解压文件测试') | ||
pbottleRPA.unZip(pbottleRPA.__dirname+'/目标压缩包.zip',pbottleRPA.__dirname+'/解压目录/') | ||
|
||
|
||
console.log('压缩测试完成:正在打开目录'); | ||
pbottleRPA.openDir(pbottleRPA.__dirname) | ||
|
||
|