def remove_release_file(self):
        """
        File path is master
        :rtype: object
        """
        # file_list = os.listdir(r'D:\CodeWorkspace\iConnAll\Client-master\iConn.CreateXmlTools\bin\Release')
        # print(file_list)
        # saved_path = os.getcwd()
        # print("Current Working Directory is " + saved_path)
        os.chdir(
            r"D:\CodeWorkspace\iConnAll\Client-master\iConn.CreateXmlTools\bin\Release"
        )
        print("Current Working Directory is " + os.getcwd())
        # self.remove_file(file_list, os)
        # Remove_file.remove_file(self.file_name_list)
        #
        # update = update_xml(r'http://172.16.1.215:8097/UpdateRelease/', os.getcwd().strip() + "\\")
        # update.read_xml()

        file_operation = File_operation.File_operation()
        file_operation.remove_file(self.file_name_list)
        file_operation.change_file("xml", "AutoupdateService",
                                   r'http://172.16.1.215:8097/UpdateRelease/')
Ejemplo n.º 2
0
# ! /usr/bin/env python
# _*_ coding:utf-8 _*_
"""
@author = lucas.wang 
@create_time = 2018-02-06 
"""

import os
import sys
import time

sys.path.append(r'D:\CodeWorkspace\python\GeneralTools')
from File import File_operation
from Log import LogUtils

file_operation = File_operation.File_operation()
file_name_list = ["*.pdb", "iConn.CreateXmlTools.*"]


def remove_file():
    os.chdir(
        r"D:\Lucas\1-CodeWorkspace\1-ARIIX\Client-master\iConn.CreateXmlTools\bin\Release"
    )
    print("Current Working Directory is " + os.getcwd())

    file_operation.remove_file(file_name_list)

    os.chdir(
        r"D:\Lucas\1-CodeWorkspace\1-ARIIX\Client-dev\iConn.CreateXmlTools\bin\Release"
    )
    print("Current Working Directory is " + os.getcwd())