Hi,
Is there any way to get the library name in the SP.web.getFileByUrl.
I have tried the below code but not getting library name
let result = await sp.web.getFileByUrl("https://sample.sharepoint.com/:p:/r/sites/SampleSite/SampleLibrary/test/test.docx?d=w1db9f77e26354f7e8301ff3ddda7dff0&csf=1&web=1&e=O2hf6u").select("*").get()