Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            FTPTool serviceOne = new FTPTool("192.168.131.170");

            serviceOne.FileRename("ftp://192.168.131.170/ApplyCashe/20190711/636984372880238219.txt", "NEW.TXT");
        }
        public static void Init()
        {
            MessageStringData data     = Resources.Load <MessageStringData>("GameRunSettingData");
            string            ip       = data.GetValue("ftpServerIP");
            string            userName = data.GetValue("ftpUserID");
            string            pw       = data.GetValue("ftpPassword");

            ftp = new FTPTool(ip, userName, pw);

            localDirPath = Application.dataPath.Replace("Assets", "TempUpdateAB");

            if (Directory.Exists(localDirPath))
            {
                Directory.Delete(localDirPath, true);
            }
        }