Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
28282260
Commit
28282260
authored
May 31, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix path
parent
60415f28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
FTPClientPool.java
.../main/java/pwc/taxtech/atms/common/ftp/FTPClientPool.java
+4
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/common/ftp/FTPClientPool.java
View file @
28282260
...
@@ -16,6 +16,7 @@ public class FTPClientPool {
...
@@ -16,6 +16,7 @@ public class FTPClientPool {
private
GenericObjectPoolConfig
config
;
private
GenericObjectPoolConfig
config
;
private
GenericObjectPool
<
FTPClient
>
pool
;
private
GenericObjectPool
<
FTPClient
>
pool
;
private
String
ftpRootPath
;
private
String
ftpRootPath
;
private
static
final
String
SYMBOL
=
"/"
;
@Value
(
"${ftp.host}"
)
@Value
(
"${ftp.host}"
)
private
String
ftpHost
;
private
String
ftpHost
;
...
@@ -56,6 +57,9 @@ public class FTPClientPool {
...
@@ -56,6 +57,9 @@ public class FTPClientPool {
}
else
{
}
else
{
upPath
=
filePath
;
upPath
=
filePath
;
}
}
if
(!
StringUtils
.
endsWith
(
upPath
,
SYMBOL
))
{
upPath
=
upPath
+
SYMBOL
;
}
FTPClient
client
=
getClient
();
FTPClient
client
=
getClient
();
if
(!
isExist
(
upPath
,
client
))
{
if
(!
isExist
(
upPath
,
client
))
{
mkDir
(
upPath
,
client
);
mkDir
(
upPath
,
client
);
...
...
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