Skip to content

Commit 24684cc

Browse files
authored
Update CommandPatch.cpp
忽略隐藏文件,避免在mac系统下打包生成的文件影响发布
1 parent c7e9172 commit 24684cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NodeServer/CommandPatch.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ int CommandPatch::execute(string &sResult)
441441
do
442442
{
443443
vector<string> files;
444-
tars::TC_File::listDirectory(srcPath, files, false);
444+
// 忽略隐藏文件,避免在mac系统下打包生成的文件影响发布
445+
tars::TC_File::listDirectory(srcPath, files, false, true);
445446
if(files.empty())
446447
{
447448
sResult = cmd + ", error!";

0 commit comments

Comments
 (0)