Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 2585387c
authored
2023-10-03 08:38:13 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
se agrega try en el borrado y devolucion de archivo correjido
1 parent
9fb65e21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
fosadiaria.py
fosadiaria.py
View file @
2585387
...
@@ -60,9 +60,13 @@ class FosaDiaria():
...
@@ -60,9 +60,13 @@ class FosaDiaria():
der
=
line
.
split
(
" "
)[
0
]
der
=
line
.
split
(
" "
)[
0
]
archivo
=
f
"""{der}"""
archivo
=
f
"""{der}"""
print
(
archivo
)
print
(
archivo
)
rta
=
archivo
file1
.
close
()
file1
.
close
()
os
.
system
(
f
"""rm {tmp}"""
)
os
.
system
(
f
"""rm {tmp}"""
)
return
rta
return
rta
def
LimpiarCarpertaDescarga
(
self
):
def
LimpiarCarpertaDescarga
(
self
):
os
.
system
(
f
"""rm {self.CarpetaDescarga}{self.cabezaera}*"""
)
try
:
os
.
system
(
f
"""rm {self.CarpetaDescarga}{self.cabezaera}*"""
)
except
Exception
as
E
:
print
(
f
"Error al intentar borrar planillas diarias anteriores: {str(E)}"
)
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment