Example #1
0
 private static void CopyOutTmpFile(List <string> fileList)
 {
     foreach (string path in fileList)
     {
         FirstUtil.CreateFileDirectory(FirstUtil.OutDir + path);
         File.Copy(OutTmpPath + path, FirstUtil.OutDir + path, true);
     }
 }
Example #2
0
        bool WriteTmpFile(string path, byte[] buf)
        {
#if !UNITY_WEBPLAYER
            try
            {
                string tmpPath = OutTmpPath + path;
                FirstUtil.CreateFileDirectory(tmpPath);
                File.WriteAllBytes(tmpPath, buf);
                WriteLog("WriteTmpFile: {0} ok!", path);
                return(true);
            }
            catch (Exception e)
            {
                Debug.LogException(e);

                FirstRecordMsg.Error("Write Error:" + path + ":::Stack:" + e.StackTrace, MsgType.WriteFileError);
            }
            return(false);
#endif
        }