# Load file from root path

**URL:** <https://forums.fusetools.com/t/load-file-from-root-path/1006>\
**Category:** Feature Suggestions\
**Created:** [September 14, 2015, 1:03am UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006 "2015-09-14T01:03:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishirock](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mishirock](https://forums.fusetools.com/u/mishirock)\
**Post date:** [September 14, 2015, 1:03am UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/1 "2015-09-14T01:03:54Z")

</div>

Assets load path seems need relative path. I feel hard to manage files that moved directory.

example:

```auto
<!-- MainView.ux -->
<App>
  <Font File="assets/fonts/fontawesome-webfont.ttf" ux:Global="FontAwesome" />
  <JavaScript File="node_modules/codebird/codebird.js" ux:Global="codebird"/>
</App>

```

```auto
<!-- Controls/PopupWindow.ux -->
<App>
  <Font File="../assets/fonts/fontawesome-webfont.ttf" ux:Global="FontAwesome" />
  <JavaScript File="../node_modules/codebird/codebird.js" ux:Global="codebird"/>
</App>

```

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [September 14, 2015, 9:22am UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/2 "2015-09-14T09:22:13Z")

</div>

Thanks for the input! We’ll look into it.

---

<div class="post-metadata">

**Author:** ![Rene](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/rene/32/318_2.png) [@Rene](https://forums.fusetools.com/u/Rene)\
**Post date:** [July 15, 2016, 12:34pm UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/3 "2016-07-15T12:34:44Z")

</div>

Any updates regarding this topic ? Thanks.

---

<div class="post-metadata">

**Author:** ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)\
**Post date:** [July 18, 2016, 10:51am UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/4 "2016-07-18T10:51:52Z")

</div>

This is not how you include JavaScript anymore, you use [bundle](https://www.fusetools.com/docs/assets/bundle) in your project file.

---

<div class="post-metadata">

**Author:** ![mgleason\_3](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@mgleason\_3](https://forums.fusetools.com/u/mgleason_3)\
**Post date:** [September 22, 2016, 8:04pm UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/5 "2016-09-22T20:04:37Z")

</div>

Hi,

Is there a way to specify file locations based on the root of the project?

---

<div class="post-metadata">

**Author:** ![mgleason\_3](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@mgleason\_3](https://forums.fusetools.com/u/mgleason_3)\
**Post date:** [September 26, 2016, 6:05pm UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/6 "2016-09-26T18:05:01Z")

</div>

Hope this wasn’t a stupid question!

---

<div class="post-metadata">

**Author:** ![Vegard\_Strand\_Lende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vegard_strand_lende/32/349_2.png) [@Vegard\_Strand\_Lende](https://forums.fusetools.com/u/Vegard_Strand_Lende)\
**Post date:** [September 27, 2016, 1:53pm UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/7 "2016-09-27T13:53:40Z")

</div>

Paths in the `.unoproj` is relative to that file. Does that answer your question? Please describe what you are trying to do

---

<div class="post-metadata">

**Author:** ![mgleason\_3](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@mgleason\_3](https://forums.fusetools.com/u/mgleason_3)\
**Post date:** [September 27, 2016, 5:49pm UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/8 "2016-09-27T17:49:39Z")

</div>

I was looking for the answer to the original question. I’m refactoring my project and wanted to separate assets from UX. I had to specify relative paths. That’s is not terribly convenient because you have to search/replace the paths anytime you move files up or down the folder structure.

So, this worked:

```auto
<Video Layer="Background" File="../../assets/nature.mp4" > 

```

But these did not:

```auto
<Video Layer="Background" File="/assets/nature.mp4" >
<Video Layer="Background" File="~/assets/nature.mp4" >
<Video Layer="Background" File="file:///assets/nature.mp4" >

```

---

<div class="post-metadata">

**Author:** ![kusma](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kusma/32/595_2.png) [@kusma](https://forums.fusetools.com/u/kusma)\
**Post date:** [October 25, 2016, 11:44am UTC](https://forums.fusetools.com/t/load-file-from-root-path/1006/9 "2016-10-25T11:44:59Z")

</div>

Since you’re saying you’re looking for an answer, here’s the current status: You need to refer to a file by the relative path from the unoproj-file it was included in. No other paths will work.

We’ve noted the feature-request, but we have not yet made any plans for such a feature.
