Exemple #1
0
 public unsafe void DeleteFile(string path)
 {
     if (Exists(path))
     {
         MobileDevice.AFCRemovePath(hAFC, path);
     }
 }
Exemple #2
0
 public unsafe void DeleteDirectory(string path)
 {
     if (IsDirectory(path))
     {
         MobileDevice.AFCRemovePath(hAFC, path);
     }
 }
Exemple #3
0
        public unsafe void DeleteDirectory(string path)
        {
            string str = this.FullPath(this.current_directory, path);

            if (this.IsDirectory(str))
            {
                MobileDevice.AFCRemovePath(this.hAFC, str);
            }
        }
Exemple #4
0
        /// <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));
            }
        }