Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
104 views

Creating a relative path to a file in another project

I'm using this functionality to generate an absolute path to a file HttpContext.Current.Server.MapPath("/File.jpg"); However it returns the path of a directory in the startup project of the ...
John's user avatar
  • 451
1 vote
1 answer
110 views

How can I get the path to a file relative to another file?

I am making a C program that needs to read various files in GNU/Linux. Imagine the following file structure. root |- dir1 | |- file1.txt | |- dir2 |- file2.txt Now imagine that I already ...
trxgnyp1's user avatar
  • 437
0 votes
0 answers
17 views

Issue with Image Paths in JavaScript — 404 Not Found Despite Correct Path

I've been working on a Blackjack game and I've encountered an issue with loading images dynamically using JavaScript. Here's the structure of my project: /version1 /scripts script.js /...
Aintripin's user avatar
0 votes
2 answers
835 views

Using relative file paths in Go as function parameters

Lets say I have a folder structure like so: src/ - main.go data/ - example.csv csv/ - parse.go utils/ - mapFields.go The mapFields function takes in input and output csv files as paramters: MapFields(...
ehartley38's user avatar
0 votes
1 answer
479 views

File referencing using relative paths on Ruby

I just completed a CTF machine, but my brain has a hard time figuring out why this worked, so I thought to ask because I won't be able to sleep until I know! My question is regarding the use of the ...
xhi4m's user avatar
  • 29
2 votes
0 answers
236 views

Trouble with Cygwin, Curl and Full paths for certificates in windows

The main error: curl: (58) could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such file or directory, (no key found, wrong pass phrase, or wrong file format?) ...
Yair Dor's user avatar
-1 votes
2 answers
531 views

Absolute vs. Relative File Path (Python) [closed]

Is it better to use a relative or absolute file path in Python, in both a situational setting and for best practice? I know what both of them do, and I'm wondering if, for example, always using an ...
Otaku's user avatar
  • 227
0 votes
0 answers
17 views

Relative path not working in specific file but works with absolute path - PHP [duplicate]

I'm a newbie in PHP. My project is stored in the folder called 'Remember'. I want to include database.php into the home.php Remember/app/database/database.php Remember/app/logged/home.php In the ...
Andrew530's user avatar
0 votes
0 answers
570 views

Using os.path.relpath on Windows network drive

I need to get the relative path on a network drive. So, from s:\path\to\file, I want to get path\to\file. So, this works: In [8]: path = r's:\path\to\file' In [9]: path[3:] Out[9]: 'path\\to\\file' ...
mrgou's user avatar
  • 2,570
0 votes
0 answers
123 views

How to access file independent from directory I run the binary file?

In my program I want to read file placed in specific sub directory of my repository. I use relative path to do so. But the problem is that if I execute my binary file from other directory it obviously ...
ralex's user avatar
  • 48
1 vote
1 answer
1k views

c# can't access file with relative path

I have a text file where I write some errors. If the string file path is written in absolute method, string filePath = @"E:\server\publish\Exceptions.txt"; it works as expected. But if I use ...
Ionut's user avatar
  • 859
1 vote
0 answers
52 views

String to do relative path

This is my full path: string imagesFolder = "C:/Users/danie/Desktop/Projects/ProjectPacmanGame/Characters/"; I tried using ".." But I get an error I want this whole part to be ...
Opal David's user avatar
0 votes
0 answers
179 views

Why does Scene builder and getResource return wrong path? (look for file in /out/ folder)

I added .css stylesheet to Scene builder for Choice box, but relative path is wrong: INFO: Could not find stylesheet: file:/mnt/windows/projects/Java/DiamondCircle/out/production/DiamondCircle/gui/...
qu4lizz's user avatar
  • 369
0 votes
1 answer
1k views

Providing Template Paths in flask.render_template

I'm new to python and learning how to use flask for the first time. I'd like to render an html template index.html in a simple app.py file. My project directory is structured as follows: - ...
Nick A.'s user avatar
  • 101
0 votes
1 answer
527 views

Finding Relative Path for a dataset folder used by Deep Learning Model, stored in current Project folder

I have made a deep learning model which uses a folder of Images stored in a common directory FINAL, where both the python script of this code and the dataset folder Images exist. I want to convert the ...
Chaitanya Sethi's user avatar

15 30 50 per page
1
2 3 4 5
31