Questions tagged [absolute-path]

global address for a file, independent from the working directory of the calling process

An absolute (or full) path is the general form of the name of a file or directory that specifies a unique location in a file system. An absolute path contains the root directory and all other subfolders in which the requested file or folder is contained.

833 questions
10
votes
2 answers

How do you resolve a relative Uri?

Given an absolute Uri and a relative Uri or relative path, how do you get the absolute Uri pointing to the relative location? For example, suppose we have the Uri for file:///android_asset/dir, pointing to a location in our assets. Further suppose…
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
10
votes
2 answers

Skip directory in msdeploy

I have a msdeploy in my nant script(Team City) that is working except it is copying some folders that I do not want to copy. What command will skip these directories? I tried:
Jack Smit
  • 3,093
  • 4
  • 30
  • 45
10
votes
1 answer

What's the point of using absolute urls in Pelican?

About RELATIVE_URLS, the Pelican docs say: …there are currently two supported methods for URL formation: relative and absolute. Relative URLs are useful when testing locally, and absolute URLs are reliable and most useful when publishing.…
mlissner
  • 17,359
  • 18
  • 106
  • 169
10
votes
3 answers

How can I convert a relative link in Mechanize to an absolute one?

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 relative links too.
Konstantin
  • 2,983
  • 3
  • 33
  • 55
10
votes
5 answers

How to get rid of the starting slash in URI or URL?

I am using URL res = this.getClass().getClassLoader().getResource(dictionaryPath); String path = res.getPath(); String path2 = path.substring(1); because the output of the method getPath() returns sth like this: /C:/Users/...... and I need…
Ev0oD
  • 1,395
  • 16
  • 33
9
votes
1 answer

How to avoid very long paths and use absolute paths within a Create React App project?

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/MyComponent' Expected import MyComponent from…
Tolotra Raharison
  • 3,034
  • 1
  • 10
  • 15
9
votes
4 answers

How to write out the absolute path of a local file correctly when linking css file to html?

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 layout of multiple webpages. Since the different…
Topstar
  • 113
  • 1
  • 1
  • 3
9
votes
5 answers

How to find relative path given two absolute paths?

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.
congusbongus
  • 13,359
  • 7
  • 71
  • 99
9
votes
2 answers

Absolute email address on Jekyll

I am writing the contact page of my blog. When I put the email address in markdown format [contact me] (myname@gmail.com) Jekyll sees the email address as a relative path and auto-completes it to localhost:4000/myname@gmail.com locally or…
Sophia Feng
  • 993
  • 11
  • 16
9
votes
1 answer

Absolute path for error_page in nginx?

Is there a way I can set an absolute path for nginx error_pages? Not absolute as in http://, but absolute as in /usr/var/nginx/errors/500.html.
9
votes
3 answers

PHP: Find images and links with relative path in output and convert them to absolute path

There are a lot of posts on converting relative to absolute paths in PHP. I'm looking for a specific implementation beyond these posts (hopefully). Could anyone please help me with this specific implementation? I have a PHP variable containing…
chocolata
  • 3,258
  • 5
  • 31
  • 60
8
votes
3 answers

Execute with Ant works with absolute path but not relative path

I have the following snippet in my Ant script. It executes just fine: But then when I try to execute it by setting the directory, like so:
Cuga
  • 17,668
  • 31
  • 111
  • 166
8
votes
3 answers

Absolute path not working in create-react-app

As per this documentation I created a jsconfig.json file in my root directory in order to be able to import components using absolute paths in my React Application (which was set up using create-react-app). Unfortunately this didn't work. I tried…
8
votes
2 answers

How to get Ruby Dir#glob to return basenames, not absolute_paths?

FakeProfilePictures::Photo.all_large_names_2x (defined below) returns an array of absolute path names, but when I do Dir["picture_*@2x.*"] from the correct directory in irb, I only get the basenames (what I want). What's the best way to get the base…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
8
votes
5 answers

Performance: Absolute vs. Relative URLs

What's faster? Hot linking (inline linking) to an absolute URI or hosting the resource yourself and using a relative URI? In his tutorial on how to style HTML5 elements in Internet Explorer, Remy Sharp states that hot linking causes an "extra HTTP…
ma11hew28
  • 121,420
  • 116
  • 450
  • 651