# How can I access files within my plugin folder

**URL:** <https://forum.obsidian.md/t/how-can-i-access-files-within-my-plugin-folder/89561>\
**Category:** Devs: Plugins & API\
**Created:** [October 8, 2024, 3:22am UTC](https://forum.obsidian.md/t/how-can-i-access-files-within-my-plugin-folder/89561 "2024-10-08T03:22:18Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Tu2\_atmanand](https://forum.obsidian.md/user_avatar/forum.obsidian.md/tu2_atmanand/32/71676_2.png) [@Tu2\_atmanand](https://forum.obsidian.md/u/Tu2_atmanand)\
**Post date:** [October 9, 2024, 5:29am UTC](https://forum.obsidian.md/t/how-can-i-access-files-within-my-plugin-folder/89561/6 "2024-10-09T05:29:59Z")

</div>

Ohh ! My bad for overlooking at the mistakes. I used the window long back and forgot to change them in few places in my codebase, ill pass the plugin instance from now on.

About the `.obsidian` hardcoded folder path, I wasnt aware of such a setting in the Obisidian for changing the name of the config folder. Thank you for mentioning that. Same with the feature that `/` works on all platforms.

And for the `fs` and `path` libraries, I am using my custom hidden folders, hence used them. Will there be any problem if i use those libraries to read data from this hidden folder?

Now coming to the last issue of using the libraries instead of the prebuilt functions. The prebuilt function `loadSettings`, i am using this in my code, but it seems to be only running when Obsidian Starts, after that, if user makes any changes in my plugin’s SettingsTab and if i try to access the setting using `plugin.settings.value`, i only get the older values of setting which was loaded at the start of Obsidian. I have elaborated this in detail in my following question : [Best Method to access the latest plugin setting values](https://forum.obsidian.md/t/best-method-to-access-the-latest-plugin-setting-values/89396)

---

_[View the full topic](https://forum.obsidian.md/t/how-can-i-access-files-within-my-plugin-folder/89561)._
