瀏覽代碼

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:

Loading…
取消
儲存