# Get path of the currently installed plugin

**URL:** <https://forums.creativeclouddeveloper.com/t/get-path-of-the-currently-installed-plugin/5122>\
**Category:** UXP Plugin API\
**Created:** [August 24, 2022, 4:35am UTC](https://forums.creativeclouddeveloper.com/t/get-path-of-the-currently-installed-plugin/5122 "2022-08-24T04:35:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nishu-pixofix](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nishu-pixofix](https://forums.creativeclouddeveloper.com/u/nishu-pixofix)\
**Post date:** [August 24, 2022, 4:35am UTC](https://forums.creativeclouddeveloper.com/t/get-path-of-the-currently-installed-plugin/5122/1 "2022-08-24T04:35:49Z")

</div>

Hello,

I’m new to UXP development, I’m trying to get the path of the current plugin and checking the following reference:

[https://developer.adobe.com/xd/uxp/develop/reference/uxp/storage-index/](https://developer.adobe.com/xd/uxp/develop/reference/uxp/storage-index/)

so far I’ve got this:

`const fs = require("uxp").storage.localFileSystem;`  
`const pluginFolder = await fs.getPluginFolder();`

I was expecting to get the full path as string, but no luck, anyone can offer a working code that’ll fetch the path in a variable? TIA!

PS: I’m not much experienced with js async functionalities

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [August 24, 2022, 8:53am UTC](https://forums.creativeclouddeveloper.com/t/get-path-of-the-currently-installed-plugin/5122/2 "2022-08-24T08:53:05Z")

</div>

First - what are you actually looking for? You posted a question under Photoshop UDT category (changed to Ps UXP now), asking about file storage (which has nothing to do with UDT) and added a link to XD docs 🤔

Anyway, for Photoshop, after your two lines, check

```auto
console.log(pluginFolder.url, pluginFolder.nativePath)

```

Your folder is basically [an Entry](https://developer.adobe.com/photoshop/uxp/2022/uxp/reference-js/Modules/uxp/Persistent%20File%20Storage/Entry/)

---

<div class="post-metadata">

**Author:** ![nishu-pixofix](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nishu-pixofix](https://forums.creativeclouddeveloper.com/u/nishu-pixofix)\
**Post date:** [August 25, 2022, 6:17am UTC](https://forums.creativeclouddeveloper.com/t/get-path-of-the-currently-installed-plugin/5122/3 "2022-08-25T06:17:00Z")

</div>

Thanks for your response!

Did I post in the wrong section? If so then sorry, but I can’t quite figure out the mistake.

I’m trying to create a Photoshop UXP plugin (using vanilla JS so far), and I think I did post it under UXP Plugin API section, please do guide me the right way if I’m wrong, thanks!

I just noticed the link says Adobe XD, sorry again, but seems it’s also works for PS.

And thanks to you, I got my answer, pluginFolder.nativePath is the one I was looking for so thanks again for guiding me to the right direction!

---

<div class="post-metadata">

**Author:** ![Karmalakas](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/karmalakas/32/1048_2.png) [@Karmalakas](https://forums.creativeclouddeveloper.com/u/Karmalakas)\
**Post date:** [August 25, 2022, 6:21am UTC](https://forums.creativeclouddeveloper.com/t/get-path-of-the-currently-installed-plugin/5122/4 "2022-08-25T06:21:20Z")

</div>

> [@nishu-pixofix](#):
>
> Did I post in the wrong section? If so then sorry, but I can’t quite figure out the mistake.
> 
> I’m trying to create a Photoshop UXP plugin (using vanilla JS so far), and I think I did post it under UXP Plugin API section, please do guide me the right way if I’m wrong, thanks!

It was in _UXP developer tool_, but no worries, I changed to _UXP plugin API_. Glad the solution worked

---

<div class="post-metadata">

**Author:** ![nishu-pixofix](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@nishu-pixofix](https://forums.creativeclouddeveloper.com/u/nishu-pixofix)\
**Post date:** [August 25, 2022, 6:24am UTC](https://forums.creativeclouddeveloper.com/t/get-path-of-the-currently-installed-plugin/5122/5 "2022-08-25T06:24:48Z")

</div>

ah, got it now, thanks!
