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 9fb65e21
authored
2023-10-03 08:35:09 -0300
by
juan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Mejora en la gestion de archivos
1 parent
fe25f9cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
fosadiaria.py
fosadiaria.py
View file @
9fb65e2
...
...
@@ -53,11 +53,13 @@ class FosaDiaria():
def
BuscarExcelDescargado
(
self
,
tmp
=
"/dev/shm/tmpscdecas.txt"
):
rta
=
""
os
.
system
(
f
"""ls {self.CarpetaDescarga} -ls > {tmp}"""
)
os
.
system
(
f
"""ls {self.CarpetaDescarga} -ls
| grep {self.cabezaera} | grep xls
> {tmp}"""
)
file1
=
open
(
tmp
,
'r'
)
Lines
=
file1
.
readlines
()
for
line
in
Lines
:
print
(
"Line: {}"
.
format
(
line
.
strip
()))
der
=
line
.
split
(
" "
)[
0
]
archivo
=
f
"""{der}"""
print
(
archivo
)
file1
.
close
()
os
.
system
(
f
"""rm {tmp}"""
)
return
rta
...
...
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