/// <summary> /// Moves a file or a directory and its contents to a new location or renames a file or directory if the old and new parent path matches. /// </summary> /// <param name="sourceName">The path of the file or directory to move or rename.</param> /// <param name="destName">The path to the new location for <c>sourceName</c>.</param> /// <remarks>Files cannot be moved across filesystem boundaries.</remarks> unsafe public bool Rename(string sourceName, string destName) { return(MobileDevice.AFCRenamePath(hAFC, FullPath(CurrentDirectory, sourceName), FullPath(CurrentDirectory, destName)) == 0); }