Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 public unsafe bool Rename(string sourceName, string destName)
 {
     return(MobileDevice.AFCRenamePath(this.hAFC, this.FullPath(this.CurrentDirectory, sourceName), this.FullPath(this.CurrentDirectory, destName)) == 0);
 }
Beispiel #3
0
 /// <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 removed across filesystem boundaries.</remarks>
 public void Rename(string sourceName, string destName)
 {
     MobileDevice.AFCRenamePath(hAFC, FullPath(current_directory, sourceName), FullPath(current_directory, destName));
 }