Explorar el Código

add auto rm

master
Jeong Geol Kim hace 4 años
padre
commit
2b55ccb795
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      auto_kpi.py

+ 3
- 1
auto_kpi.py Ver fichero

@@ -49,9 +49,11 @@ def main():
49 49
                     for file in file_list:
50 50
                         sftp.put(file,'/data/'+str(file[5:]))
51 51
                     sftp.close()
52
-                    transport.close()                
52
+                    transport.close()      
53
+                    os.system('rm -rf '+id)          
53 54
                 else:
54 55
                     pass
56
+        
55 57
 
56 58
 if __name__ == '__main__':
57 59
     while True:

Loading…
Cancelar
Guardar