Cant get nativePath

Hi, im trying to get access just to get the property info of my folder,

i called for localFileSystem at the beginning of my js File.

I could post only 1 attachment so i photoshoped them into one whole photo.

This is because getFolder is an asynchronous method - you need to call it asynchronously so that code execution is complete before moving to the next line.

I like async/await, but there are other approaches.

async function folderSettings () {
     const folder = await fs.getFolder();
     // Do something with folder...

I suggest that you go and study asynchronous JS as you’re going to keep banging up against it with UXP.