Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
6cb6342a
Commit
6cb6342a
authored
Aug 16, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add function in delete_temp
parent
ac3ba1d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
delete_temp_files.py
delete_temp_files.py
+6
-0
No files found.
delete_temp_files.py
View file @
6cb6342a
...
@@ -16,9 +16,15 @@ def remove_files(fileDir):
...
@@ -16,9 +16,15 @@ def remove_files(fileDir):
if
ltime
<=
ntime
:
if
ltime
<=
ntime
:
os
.
remove
(
fileDir
+
"/"
+
eachFile
)
os
.
remove
(
fileDir
+
"/"
+
eachFile
)
def
delete_log
():
for
eachFile
in
os
.
listdir
(
"/tmp"
):
if
"xlearn"
in
eachFile
:
os
.
remove
(
"/tmp"
+
"/"
+
eachFile
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
while
True
:
while
True
:
delete_log
()
remove_files
(
DIRECTORY_PATH
+
"result"
)
remove_files
(
DIRECTORY_PATH
+
"result"
)
print
(
"运行一次"
)
print
(
"运行一次"
)
time
.
sleep
(
5
*
60
)
time
.
sleep
(
5
*
60
)
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