question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error loading files from parent directory

See original GitHub issue

It’s not an issue (most likely) but I have to be sure.

I have directory tree similar to:

  • project
    • bower_components
      • lib
        • lib.css
    • app
      • index.html

My http-server is running in app directory. If I try to include lib.css in my index.html I get 404 error. I suspect that it is normal behavior and http-server can’t serve files from ancestor directories. Am I correct? Or is it something wrong with my setup and http-server is supposed to be able to serve such files

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

3reactions
dKabcommented, Dec 15, 2015

it’s 404 - request goes to /bower_components/lib/lib.css ignoring “…” at the begining and of course it’s not there.

0reactions
Jun711commented, Mar 2, 2018

The workaround from the stackoverflow link above is NOT to access a parent directory and have your files in the same directory or child directories.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error loading files from parent directory · Issue #222
I have directory tree similar to: project bower_components lib lib.css app index.html My ... Error loading files from parent directory #222.
Read more >
Is its parent directory writable by the server? — How to Fix ...
The error can happen due to incorrect permissions, ownerships, or the location of the uploads folder. Regardless of the cause, we're here to ......
Read more >
Error while reading a file from parent directory
I have "A/B/C" and I am working in C directory. I have a file in directory B which references a file from directory...
Read more >
FAQ: Why FileIO connection fail with error 'Parent Directory ...
FAQ: Why FileIO connection fail with error 'Parent Directory {xxxx} does not contain any valid directories' in Informatica Cloud?
Read more >
Python - Import from parent directory
Return Type: This method returns a normalized version of the pathname path. Firstly we will get the name of the directory where the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found