# Inconsistency between folders nativePath

**URL:** <https://forums.creativeclouddeveloper.com/t/inconsistency-between-folders-nativepath/9144>\
**Category:** UXP Plugin API\
**Tags:** bug, uxp, javascript, api-feedback\
**Created:** [January 28, 2025, 5:18pm UTC](https://forums.creativeclouddeveloper.com/t/inconsistency-between-folders-nativepath/9144 "2025-01-28T17:18:48Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [January 28, 2025, 5:18pm UTC](https://forums.creativeclouddeveloper.com/t/inconsistency-between-folders-nativepath/9144/1 "2025-01-28T17:18:48Z")

</div>

Just wasted ~6 hours just on this and had to restart my PC 2 times…

Simplified example:

```js
const temp = (await storage.localFileSystem.getTemporaryFolder()).nativePath
const data = (await storage.localFileSystem.getDataFolder()).nativePath
const plugin = (await storage.localFileSystem.getPluginFolder()).nativePath

console.log(temp) // C:\users\...\temp\...\PluginData
console.log(data) // C:\users\...\Roaming\...\PluginData
console.log(plugin) // C:\path\to\plugin\

```

**Notice the trailing backslash** on the `plugin` result  
Then trying to get `fs.lstatSync(plugin)` completely froze Photoshop and couldn’t even kill the process. Took some restarts at the end of debugging to finally pin-point the problem

Don’t know if it’s just Windows issue or MacOS also, but that’s not how APIs should behave 😖

Posting here if someone runs into this…

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [January 29, 2025, 2:21pm UTC](https://forums.creativeclouddeveloper.com/t/inconsistency-between-folders-nativepath/9144/2 "2025-01-29T14:21:44Z")

</div>

Is async function with a same issue?

---

<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:** [January 29, 2025, 2:41pm UTC](https://forums.creativeclouddeveloper.com/t/inconsistency-between-folders-nativepath/9144/3 "2025-01-29T14:41:32Z")

</div>

These are all 3 async functions (see `await` 🙂). I’m not aware of synchronous ones

---

<div class="post-metadata">

**Author:** ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)\
**Post date:** [January 29, 2025, 7:19pm UTC](https://forums.creativeclouddeveloper.com/t/inconsistency-between-folders-nativepath/9144/4 "2025-01-29T19:19:28Z")

</div>

> [@Karmalakas](#):
>
> Then trying to get `fs.lstatSync(plugin)` completely froze Photoshop and couldn’t even kill the process.

I mean this one. It has async version. So I was thinking if `fs.lstatSync` causes freezing is it same case for `fs.lstat` ?

---

<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:** [January 29, 2025, 7:56pm UTC](https://forums.creativeclouddeveloper.com/t/inconsistency-between-folders-nativepath/9144/5 "2025-01-29T19:56:17Z")

</div>

Oh, that. I actually don’t know - didn’t try after figuring out the slash. Might try some time if I remember when I get back to that part of code
