absolute-path Questions

6

Solved

I have two files in two different directories, one is '/home/test/first/first.pdf', the other is '/home/text/second/second.pdf'. I use following code to compress them: import zipfile, StringIO buff...
Brunella asked 18/4, 2013 at 19:54

2

Solved

I have Url.Content() snippets everywhere in my views. They work fine on pages with a simple URL, but not when the URL gets longer. Here's a sample: <img src="@Url.Content("~/Content/Images/log...
Lithosphere asked 8/7, 2013 at 16:23

6

Solved

The yocto project allows the use of relative path in most of its configuration files but not within the ./build/conf/bblayers.conf file. What is the reason for blocking the use of anything but abso...
Reviewer asked 11/8, 2016 at 8:11

7

I'm writing a C++ program for a school assignment. At some point, the question requires me to change directories, which I know how to do. However, the user will provide the program with the absolut...
Hexa asked 20/2, 2016 at 22:51

5

Solved

So, an absolute path is a way to get to a certain file or location describing the full route to it, the full path, and it's OS dependent (the absolute paths for Windows and Linux, for example, are ...

5

Solved

I have an image in C:\wamp\www\site\img and i try to display it in a page with this: <img src="C:\wamp\www\site\img\mypicture.jpg"/> but it's not working.The file is actually there and if ...
Xeroderma asked 1/3, 2011 at 17:6

8

Solved

What is the correct way to find the absolute path to the App_Data folder from a Controller in an ASP.NET MVC project? I'd like to be able to temporarily work with an .xml file and I don't want to h...
Cyder asked 12/8, 2009 at 21:6

32

Solved

I have an onActivityResult returning from an mediastore image selection which I can get a URI for an image using the following: Uri selectedImage = data.getData(); Converting this to a string gi...
Kaolinite asked 3/8, 2010 at 23:46

1

Solved

I have followed this document and set an absolute path across the project. But when I run test case it gives me following error Your application tried to access assets, but it isn't declared in yo...
Terrorize asked 21/5, 2021 at 8:31

2

I have a relative path and absolute path that look something like this: Absolute: /tmp/somedir Relative: anotherdir/file.txt I would like to concatenate the two (/tmp/somedir/anotherdir/file.tx...
Wayne asked 28/7, 2012 at 2:40

4

Solved

I'm trying to save my session in Vim with relative paths to open files. With cur_dir in sessionoptions, the paths to files will be relative wrt. current directory, but the session file contains cd ...
Surmise asked 10/11, 2012 at 14:29

9

Solved

I've been using create-react-app package for creating a react website. I was using relative paths throughout my app for importing components, resources, redux etc. eg, import action from '../../../...

2

Solved

Using Javascript, is there a standard way to get the absolute path of an image? img.getAttribute("src") only returns the src attribute as it was declared in the HTML.
Szymanowski asked 16/8, 2010 at 19:17

3

Is there is a way to convert a Mechanize relative-link object to another one which contains the absolute URL. Mechanize must know the absolute link, because I can call the click method on relativ...
Kissinger asked 3/8, 2013 at 21:29

2

Hi I am building a web application using Flask and Sqlite3. I had issues with connecting the database for a while and it did not work when I wrote this: #version 1 app.config['SQLALCHEMY_DATABASE_...
Labrecque asked 2/6, 2019 at 15:30

8

Solved

I can't believe PHP doesn't have an easy solution for this simple matter. ASP.NET has a ~ sign that takes care of this issue and starts everything from the root level. Here's my problem: localhost/...
Erminiaerminie asked 22/7, 2012 at 22:17

11

As arguments to my script there are some file paths. Those can, of course, be relative (or contain ~). But for the functions I've written I need paths that are absolute, but do not have their symli...
Metrist asked 19/8, 2011 at 19:39

8

Solved

I have written an Excel VBA macro which imports data from a HTML file (stored locally) before performing calculations on the data. At the moment the HTML file is referred to with an absolute path:...
Tonga asked 17/10, 2008 at 19:42

7

Solved

I'm not sure if these paths are duplicates. Given the relative path, how do I determine absolute path using a shell script? Example: relative path: /x/y/../../a/b/z/../c/d absolute path: /a/b/c/...
Kamalakamaria asked 28/10, 2010 at 16:56

1

Solved

Is there a babel plugin to avoid long import path in CRA? I've searching a lot on the web but I can't find the best way to achieve this. Actual: import MyComponent from '../../../../components/My...
Systole asked 2/12, 2019 at 21:34

3

Solved

Is it possible to convert an absolute path to a relative path in a batch file? (the opposite of this). Obviously you would need two inputs: the absolute path to convert, and an absolute reference p...
Lase asked 19/4, 2012 at 2:2

5

Solved

To make it simpler for a webapp to share files with another app on a different server, I'm using a base href tag in my master page. As many people have discovered, this breaks webform paths. I have...
Racketeer asked 19/2, 2009 at 22:45

0

I have a Spring boot API service , other websites and mobile apps call this API for data and images. Images are stored in file system and file path in database. I am looking for best practice to re...
Sama asked 8/11, 2019 at 20:32

4

Solved

I'm a complete beginner of html/css. I use PHP to include the same head section in different webpages. There is a href link in the head section linking to an external css. file which styles the l...
Vc asked 17/10, 2019 at 12:0

5

Solved

Given two absolute paths, e.g. /a/path/to/a /a/path/to/somewhere/else How can I get a relative path from one to the other, ../a? In a sense, the opposite of what realpath does.
Gomorrah asked 14/3, 2015 at 23:34

© 2022 - 2025 — McMap. All rights reserved.