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
8
votes
2 answers

Is there a path similar to file:///android_asset/ that points to the apps directory?

I'm using a WebView to open some files saved to the app. Is there a way to link to the app's directory where files saved at runtime would be, in a similar way that file:///android_asset/ does? By link I mean loadUrl( *path* ) and also in the HTML…
cottonBallPaws
  • 21,220
  • 37
  • 123
  • 171
8
votes
1 answer

How to get absolute path from path with system path variables?

Is there an easy way to translate a path with system path variables to an absolute path? So %ProgramFiles%\Internet Explorer\hmmapi.dll becomes C:\Program Files\Internet Explorer\hmmapi.dll I like to know if there is an API call that can do this, or…
The_Fox
  • 6,992
  • 2
  • 43
  • 69
8
votes
2 answers

How to suppress FindBugs warning (hard coded reference to an absolute pathname)?

i am just testing some things for the opensource software Geonetwork and now I want to export a shape file from my postGIS database to my computer but I cant test it cause I always get a findbugs warning : Hard coded reference to an absolute…
8
votes
2 answers

WIN32_FIND_DATA - Get the absolute path

I'm using something like this: std::string tempDirectory = "./test/*"; WIN32_FIND_DATA directoryHandle; memset(&directoryHandle, 0, sizeof(WIN32_FIND_DATA));//perhaps redundant??? std::wstring wideString = std::wstring(tempDirectory.begin(),…
Mihai Todor
  • 8,014
  • 9
  • 49
  • 86
7
votes
1 answer

Phonegap: how to use absolute paths on both Android, iOS and browser?

I'm trying out Phonegap to develop for both Android and iOS using the same source. I would like to use absolute paths like : background-image: url(/graphics/test.png); but this doesn't work on Android or iOS. I found out that for Android I have to…
Dylan
  • 9,129
  • 20
  • 96
  • 153
7
votes
0 answers

Why don't absolute paths work when importing typescript files into other typescript files but are otherwise ok, in a React Native Project?

Backstory: I am gradually converting an existing React Native project to TypeScript. Absolute paths have been working for years based on my babelrc configuration. Problem: Since adding TypeScript, absolute paths work only in the following…
gabriellend
  • 265
  • 2
  • 12
7
votes
2 answers

How to get the absolute path of a file (from workspace) in Jenkins pipeline script (in windows environment)

How to get the absolute path of a file (from workspace) in Jenkins pipeline script (in windows environment) File locations (The files are checked-out from Git and Jenkinsfile2.nprd will have the groovy pipeline script): C:/Program Files…
7
votes
1 answer

relative url to absolute url in nodejs

I have url like this: http://example.com/path/to/css/../../images/test.jpg which i want to convert to absolute like the following: http://example.com/path/images/test.jpg I am looking for a module in Nodejs to do the same. The module, path, does the…
Learner
  • 315
  • 1
  • 5
  • 15
7
votes
1 answer

absolute paths with react-native raise eslint errors

in my React Native app, within my package.json I've set the name to rpms. This allows me to do: import Component from 'rpms/App/common/Component' Flow gets on well with this type of imports, however eslint-plugin-import raises…
maraujop
  • 4,472
  • 2
  • 36
  • 40
7
votes
5 answers

Relative to absolute paths in HTML

I need to create a newsletters by URL. To do that, I: Create a WebClient. Use WebClient's method DownloadData to get a source of page in byte array; Get string from the source-html byte array and set it to the newsletter content. However, I have…
Alex M
  • 1,304
  • 1
  • 14
  • 23
7
votes
1 answer

getting base url of web site's root (absolute/relative url)

I want to completely understand how to use relative and absolute url address in static and dynamic files. ~ : / : .. : in a relative URL indicates the parent directory . : refers to the current directory / : always replaces the entire pathname…
uzay95
  • 16,052
  • 31
  • 116
  • 182
7
votes
5 answers

Perl use/require abolute path?

If I have a .pm file, is there a way I can use it, without placing it on my @INC path? I think that would be clearer in my particular use case - clearer than using relative paths or adding this directory to @INC. Edit: Clarification: I was hoping to…
700 Software
  • 85,281
  • 83
  • 234
  • 341
7
votes
3 answers

HttpClient = INVALID URI - Escaped absolute path not valid

I am trying to upload/delete a file to webdav server using HttpClient. However, none is working whenever I have a file name consist of space . I got a error message saying "INVALID URI--- Escaped absolute path not valid". this my URL =…
david
  • 244
  • 2
  • 4
  • 11
7
votes
4 answers

Force Vim's mksession to use relative paths?

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 /path/to/base/directory command: ... cd…
huoneusto
  • 1,164
  • 1
  • 8
  • 19
7
votes
3 answers

Convert absolute path to relative path in batch file

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 path that you want it to be relativised to. eg: Path…
David Cook
  • 483
  • 7
  • 25