|
|
@@ -32,9 +32,9 @@ def delete_file(documento):
|
|
|
file_path = os.path.join(settings.BASE_DIR,getConfig('DocPath'),documento.utente.azienda.partitaiva,documento.utente.codicefiscale,documento.storage)
|
|
|
print('Path completa:',file_path)
|
|
|
if os.path.isfile(file_path):
|
|
|
- print('rimozione fisica file:',posizione)
|
|
|
+ print('rimozione fisica file:',file_path)
|
|
|
try:
|
|
|
- os.remove(posizione)
|
|
|
+ os.remove(file_path)
|
|
|
except OSError as ose:
|
|
|
print('errore nella rimozione del file:',ose)
|
|
|
|