Example #1
0
        /// <summary>
        /// Deletes the specified file.
        /// </summary>
        /// <param name="path">The name of the file to remove.</param>
        unsafe public void DeleteFile(string path)
        {
            string full_path = FullPath(CurrentDirectory, path);

            if (Exists(full_path))
            {
                MobileDevice.AFCRemovePath(hAFC, full_path);
            }
        }
Example #2
0
        public unsafe void DeleteDirectory(string path)
        {
            string str = this.FullPath(this.CurrentDirectory, path);

            if (this.IsDirectory(str))
            {
                MobileDevice.AFCRemovePath(this.hAFC, str);
            }
        }
Example #3
0
        /// <summary>
        /// Deletes an empty directory from a specified path.
        /// </summary>
        /// <param name="path">The name of the empty directory to remove. This directory must be writable and empty.</param>
        public void DeleteDirectory(string path)
        {
            string full_path;

            full_path = FullPath(current_directory, path);
            if (IsDirectory(full_path))
            {
                MobileDevice.AFCRemovePath(hAFC, full_path);
            }
        }