/// <summary> /// 删除文件 /// </summary> /// <param name="path">设备内路径,可以先设定CurrentDirectory,只传入文件名即可</param> public unsafe void DeleteFile(string path) { string str = this.FullPath(this.CurrentDirectory, path); if (this.Exists(str)) { MobileDevice.AFCRemovePath(this.hAFC, System.Text.Encoding.UTF8.GetBytes(str)); } }