public Task MoveToAsync(IDirectoryInfo destFolder, string destFileName, bool overwrite = true) { var nativeFolder = (destFolder as NativeItemWrapper <System.IO.DirectoryInfo>).NativeItem; var newPath = Path.Combine(destFolder.FullName, destFileName); return(Task.Run(() => NativeItem.MoveTo(newPath))); }
public Task RenameAsync(string name) { var newPath = Path.Combine(NativeItem.Parent.FullName, name); return(Task.Run(() => NativeItem.MoveTo(newPath))); }