Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
岳巧源
/
europa-erp-python
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
117ab001
authored
Jun 24, 2025
by
刘豪
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
389fb0e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
rs_data.py
rs_data.py
View file @
117ab001
...
...
@@ -244,18 +244,25 @@ def remove_file(extract_dir):
remove
(
conf_environment
[
"tmp_file_path"
]
+
local_file_name_3
)
def
run
():
if
not
os
.
path
.
exists
(
conf_environment
[
"tmp_file_path"
]):
os
.
makedirs
(
conf_environment
[
"tmp_file_path"
])
extract_dir
=
conf_environment
[
"tmp_file_path"
]
+
"extract/"
if
not
os
.
path
.
exists
(
extract_dir
):
os
.
makedirs
(
extract_dir
)
# ftp_client = ftp.FTPUtil(host=conf_environment["ftp"]["host"],
# port=conf_environment["ftp"]["port"],
# passive=True,
# username=conf_environment["ftp"]["username"],
# password=conf_environment["ftp"]["password"],
# logger = logger)
# down_cn(ftp_client, extract_dir)
ftp_client
=
ftp
.
FTPUtil
(
host
=
conf_environment
[
"ftp"
][
"host"
],
port
=
conf_environment
[
"ftp"
][
"port"
],
passive
=
True
,
username
=
conf_environment
[
"ftp"
][
"username"
],
password
=
conf_environment
[
"ftp"
][
"password"
],
logger
=
logger
)
if
not
os
.
path
.
exists
(
conf_environment
[
"tmp_file_path"
]):
os
.
makedirs
(
conf_environment
[
"tmp_file_path"
])
extract_dir
=
conf_environment
[
"tmp_file_path"
]
+
"extract/"
if
not
os
.
path
.
exists
(
extract_dir
):
os
.
makedirs
(
extract_dir
)
down_cn
(
ftp_client
,
extract_dir
)
down_hk
(
ftp_client
,
extract_dir
)
remove_file
(
extract_dir
)
logger
.
info
(
"运行完成"
)
...
...
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