Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
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
雷紫添
xzxt-api-report
Commits
87796ed3
Commit
87796ed3
authored
Dec 16, 2020
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加限流空置。
parent
aa60b278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/main/java/com/founder/util/FtpUtil.java
+2
-1
No files found.
src/main/java/com/founder/util/FtpUtil.java
View file @
87796ed3
...
...
@@ -125,6 +125,7 @@ public class FtpUtil {
return
result
;
}
ftp
.
changeWorkingDirectory
(
remotePath
);
// 转移到FTP服务器目录
ftp
.
enterLocalPassiveMode
();
FTPFile
[]
fs
=
ftp
.
listFiles
();
for
(
FTPFile
ff
:
fs
)
{
if
(
ff
.
getName
().
equals
(
fileName
))
{
...
...
@@ -173,7 +174,7 @@ public class FtpUtil {
try
{
FileInputStream
in
=
new
FileInputStream
(
new
File
(
"D:\\JCCJ-R1100000500002014070001.xml"
));
// boolean flag = uploadFile("47.92.129.99", 4546, "ftpuser", "fou3rfnder4SD1", "/home/ftpuser/","/2016/", "JCCJ-两岸三地R1100000500002014070001.xml", in);
boolean
flag
=
downloadFile
(
"47.92.129.99"
,
4546
,
"ftpuser"
,
"fou3rfnder4SD1"
,
"
home/ftpuser/2016/"
,
"JCXX-R1100000500002014070008
.zip"
,
"D:\\"
);
boolean
flag
=
downloadFile
(
"47.92.129.99"
,
4546
,
"ftpuser"
,
"fou3rfnder4SD1"
,
"
2016/"
,
"appone
.zip"
,
"D:\\"
);
System
.
out
.
println
(
flag
);
}
catch
(
FileNotFoundException
e
)
{
e
.
printStackTrace
();
...
...
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