Spaces:
Sleeping
Sleeping
wip
Browse files
sabiduria_tool_api/services/service_sabiduria_tool.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
from shutil import copyfileobj
|
2 |
from pandas import read_excel, DataFrame
|
3 |
-
from os import listdir, remove, mkdir
|
4 |
from os.path import isdir
|
5 |
from loguru import logger
|
6 |
|
@@ -32,6 +32,9 @@ class FileProcess:
|
|
32 |
for o_file in old_files:
|
33 |
remove(f"{self.data_store_path}{o_file}")
|
34 |
else:
|
|
|
|
|
|
|
35 |
mkdir(self.data_store_path)
|
36 |
for file in self.files:
|
37 |
with open(f"{self.data_store_path}{file.filename}", "wb") as destination:
|
|
|
1 |
from shutil import copyfileobj
|
2 |
from pandas import read_excel, DataFrame
|
3 |
+
from os import listdir, remove, mkdir, system
|
4 |
from os.path import isdir
|
5 |
from loguru import logger
|
6 |
|
|
|
32 |
for o_file in old_files:
|
33 |
remove(f"{self.data_store_path}{o_file}")
|
34 |
else:
|
35 |
+
system("ls")
|
36 |
+
print("#"*30)
|
37 |
+
system("pwd")
|
38 |
mkdir(self.data_store_path)
|
39 |
for file in self.files:
|
40 |
with open(f"{self.data_store_path}{file.filename}", "wb") as destination:
|