Can't use .. in file paths?

Monkey Targets Forums/Android/Can't use .. in file paths?

Grey Alien(Posted 2014) [#1]
Hi all, it seems like I can't use a path like this when loading resources:

"../menus/slider.png"

It works fine on PC/Mac and iOS but fails when running on Android.

So anyway I changed everything to avoid using ".."

Is that the case or am I being dumb? Thanks.


Salmakis(Posted 2014) [#2]
maybe try this:
"monkey://data/menus/slider.png"


MikeHart(Posted 2014) [#3]
Or just

image := LoadImage("menus/slider.png")



Grey Alien(Posted 2014) [#4]
I should explain that the function I was calling with that path was one of my own and it already adds "graphics/" to the start of the path (so the final path ends up as "graphics/../menus/slider.png". Sometimes I want to go up a level and into another folder which is why I use "../"

It's just a shame that you can use that, or maybe there's an equivalent thing?