1

How to write a file path that will point to a directory.

From what I have googled, /path means root, ./path means current directory, ../path means parent directory

I am playing with Framer.js + Yeoman.

If you look at the screenshot attached: enter image description here

myLayers = Framer.Importer.load("../imported/test1") is not working? When I put the "imported" folder under the "app" folder it is working.

theWanderer4865
  • 861
  • 13
  • 20
Vennsoh
  • 4,853
  • 5
  • 26
  • 41

1 Answers1

0

Looks like you need to hope out one more parent directory, to the root test1.framer directory, before you can go into the imported directory. ie:

myLayers= Framer.Importer.load("../../imported/test1")

(starting from main.js file and only going up one parent directory only gets you in the app directory)

Paul G
  • 829
  • 7
  • 11
  • Tried that and it is still not working. Error is: http://localhost:9000/imported/test1/layers.json 404 (Not Found) – Vennsoh Sep 24 '15 at 00:45