Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
md-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
md-job
Commits
9a608a91
Commit
9a608a91
authored
Mar 01, 2019
by
fuwenlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
5f36015c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
DecompressionFileZipUtl.java
src/main/java/com/byit/utils/DecompressionFileZipUtl.java
+6
-6
HyperSqlMap.java
src/main/java/com/byit/utils/HyperSqlMap.java
+0
-0
No files found.
src/main/java/com/byit/utils/DecompressionFileZipUtl.java
View file @
9a608a91
...
@@ -32,7 +32,7 @@ public class DecompressionFileZipUtl {
...
@@ -32,7 +32,7 @@ public class DecompressionFileZipUtl {
*
*
* @throws Exception
* @throws Exception
*/
*/
public
static
void
checkFile
(
String
filePath
,
String
zipName
)
throws
Exception
{
public
void
checkFile
(
String
filePath
,
String
zipName
)
throws
Exception
{
File
file
=
new
File
(
filePath
);
File
file
=
new
File
(
filePath
);
File
[]
fileArr
=
file
.
listFiles
();
File
[]
fileArr
=
file
.
listFiles
();
// 判断文件夹是否为空
// 判断文件夹是否为空
...
@@ -64,7 +64,7 @@ public class DecompressionFileZipUtl {
...
@@ -64,7 +64,7 @@ public class DecompressionFileZipUtl {
* 查询解压文件下的文件夹
* 查询解压文件下的文件夹
* @throws Exception
* @throws Exception
* */
* */
public
static
void
nextFile
(
String
filePath
,
String
zipName
)
throws
Exception
{
public
void
nextFile
(
String
filePath
,
String
zipName
)
throws
Exception
{
boolean
flag
=
false
;
boolean
flag
=
false
;
File
file
=
new
File
(
filePath
);
File
file
=
new
File
(
filePath
);
File
[]
fileArr
=
file
.
listFiles
();
File
[]
fileArr
=
file
.
listFiles
();
...
@@ -149,7 +149,7 @@ public class DecompressionFileZipUtl {
...
@@ -149,7 +149,7 @@ public class DecompressionFileZipUtl {
/**
/**
* 解压zip文件
* 解压zip文件
*/
*/
public
static
void
unZip
(
String
path
)
{
public
void
unZip
(
String
path
)
{
int
count
=
-
1
;
int
count
=
-
1
;
String
savepath
=
""
;
String
savepath
=
""
;
...
@@ -231,7 +231,7 @@ public class DecompressionFileZipUtl {
...
@@ -231,7 +231,7 @@ public class DecompressionFileZipUtl {
/**
/**
* 替换数据文件
* 替换数据文件
*/
*/
public
static
void
copyFile
(
String
oldPath
,
String
newPath
)
{
public
void
copyFile
(
String
oldPath
,
String
newPath
)
{
try
{
try
{
int
bytesum
=
0
;
int
bytesum
=
0
;
int
byteread
=
0
;
int
byteread
=
0
;
...
@@ -258,7 +258,7 @@ public class DecompressionFileZipUtl {
...
@@ -258,7 +258,7 @@ public class DecompressionFileZipUtl {
/**
/**
* 删除文件夹下所有文件
* 删除文件夹下所有文件
*/
*/
public
static
boolean
delAllFile
(
String
path
)
{
public
boolean
delAllFile
(
String
path
)
{
boolean
flag
=
false
;
boolean
flag
=
false
;
File
file
=
new
File
(
path
);
File
file
=
new
File
(
path
);
if
(!
file
.
exists
())
{
if
(!
file
.
exists
())
{
...
@@ -295,7 +295,7 @@ public class DecompressionFileZipUtl {
...
@@ -295,7 +295,7 @@ public class DecompressionFileZipUtl {
/**
/**
* 删除空文件夹
* 删除空文件夹
*/
*/
public
static
void
delFolder
(
String
folderPath
)
{
public
void
delFolder
(
String
folderPath
)
{
try
{
try
{
delAllFile
(
folderPath
);
// 删除完里面所有内容
delAllFile
(
folderPath
);
// 删除完里面所有内容
String
filePath
=
folderPath
;
String
filePath
=
folderPath
;
...
...
src/main/java/com/byit/utils/HyperSqlMap.java
View file @
9a608a91
This diff is collapsed.
Click to expand it.
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