• Moves a file from one location to another within SharePoint.

    Parameters

    • client: Client

      The Microsoft Graph client instance.

    • options: {
          destinationDriveId: string;
          destinationFolderId: string;
          driveId: string;
          fileId: string;
      }

      The options for moving the file.

      • destinationDriveId: string

        The ID of the drive containing the destination folder.

      • destinationFolderId: string

        The ID of the destination folder.

      • driveId: string

        The ID of the drive containing the file to move.

      • fileId: string

        The ID of the file to move.

    Returns Promise<void>

    A promise that resolves when the file has been moved.

    const client = await getSharePointClient(opt);
    const options = {
    fileId: 'file-id',
    driveId: 'source-drive-id',
    destinationFolderId: 'destination-folder-id',
    destinationDriveId: 'destination-drive-id'
    }
    await moveFile(client, options);