Get a file by its path from a SharePoint drive using Microsoft Graph API.
Access token from getSharePointTokenUserAuth
Drive ID (e.g. , 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny')
File path (e.g. , '/path/to/file.txt')
Return file content as ArrayBuffer
const fileContent = await getFileByPathEval(ctx, token, { driveId: 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny', filePath: '/path/to/file.txt',}); Copy
const fileContent = await getFileByPathEval(ctx, token, { driveId: 'ab!5xqiQKeGnEGeI02fc4Mu5HrH_BkaM1FNnCohEqq7eEnQYz1prATORbPSv-3951Ny', filePath: '/path/to/file.txt',});
Get a file by its path from a SharePoint drive using Microsoft Graph API.