Przeglądaj źródła

add auto rm

master
Jeong Geol Kim 4 lat temu
rodzic
commit
2b55ccb795
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3
    1
      auto_kpi.py

+ 3
- 1
auto_kpi.py Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz