ソースを参照

add auto rm

master
Jeong Geol Kim 4年前
コミット
2b55ccb795
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      auto_kpi.py

+ 3
- 1
auto_kpi.py ファイルの表示

@@ -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:

読み込み中…
キャンセル
保存