Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setup-manager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
setup-manager
Commits
2c7accc1
Commit
2c7accc1
authored
Oct 29, 2024
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录鉴权时间
parent
994dd4bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
setup-project-manager/src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
.../src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
+7
-2
No files found.
setup-project-manager/src/main/java/com/mortals/xhx/common/utils/ZipUtils.java
View file @
2c7accc1
...
@@ -85,7 +85,9 @@ public class ZipUtils {
...
@@ -85,7 +85,9 @@ public class ZipUtils {
log
.
info
(
"********开始执行gzip"
);
log
.
info
(
"********开始执行gzip"
);
TarArchiveEntry
entry
;
TarArchiveEntry
entry
;
// 将 tar 文件解压到 extractPath 目录下
// 将 tar 文件解压到 extractPath 目录下
while
((
entry
=
fin
.
getNextTarEntry
())
!=
null
)
{
while
(
fin
.
getNextTarEntry
()
!=
null
)
{
entry
=
fin
.
getNextTarEntry
();
if
(
entry
==
null
)
continue
;
if
(
entry
.
isDirectory
())
{
if
(
entry
.
isDirectory
())
{
continue
;
continue
;
}
}
...
@@ -97,7 +99,10 @@ public class ZipUtils {
...
@@ -97,7 +99,10 @@ public class ZipUtils {
parent
.
mkdirs
();
parent
.
mkdirs
();
}
}
// 将文件写出到解压的目录
// 将文件写出到解压的目录
FileUtil
.
writeFromStream
(
fin
,
curfile
);
if
(
fin
!=
null
){
FileUtil
.
writeFromStream
(
fin
,
curfile
);
}
//fileOutputStream = new FileOutputStream(curfile);
//fileOutputStream = new FileOutputStream(curfile);
//IOUtils.copy(fin, fileOutputStream);
//IOUtils.copy(fin, fileOutputStream);
//set.add(curfile.getAbsolutePath());
//set.add(curfile.getAbsolutePath());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment