We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22c7b68 commit f12b374Copy full SHA for f12b374
index.js
@@ -37,10 +37,9 @@ function ensureDirectoryExists(filePath) {
37
38
// 下载文件的函数
39
function downloadFile(url, filePath) {
40
-
41
ensureDirectoryExists(filePath);
42
43
- // 如果文件已存��,跳过下载
+ // 如果文件已存在,跳过下载
44
if (fs.existsSync(filePath)) {
45
console.log(`File already exists: ${filePath}`);
46
return;
package.json
@@ -1,10 +1,7 @@
1
{
2
"name": "resource-save-script",
3
- "version": "1.0.3",
+ "version": "1.0.4",
4
"main": "index.js",
5
- "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
7
- },
8
"author": "",
9
"license": "ISC",
10
"description": "HTTP server with auto-download capability",
0 commit comments