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

Fetch with absolute url prefix

Most of the times I prefix fetch or node-fetch with an http://localhost (to make it an absolute url). import fetch from 'node-fetch'; fetch('http://localhost/whatever') Is there any way of avoiding the localhost part, other than simply placing…
zurfyx
  • 31,043
  • 20
  • 111
  • 145
5
votes
3 answers

What is the correct way to launch slimerjs in casperjs (with an absolute path)?

Well, i can launch slimerjs by specifying the path of the slimer.bat file : C:\bin\slimerjs\slimerjs.bat and then execute my file. But if i modify casperjs file (in bin\ ) and modify the default exec for slimer : 'env_varname':…
Fanch
  • 3,274
  • 3
  • 20
  • 51
5
votes
1 answer

How to go from absolute path to relative path?

I am making a small program to help with file reading. i have a for loop to take in commands from the command line: for (i = 1; argc > i; i++) { QString path = QDir::currentPath()+ "/" + QString(argv[i]); …
user3084848
  • 65
  • 1
  • 9
5
votes
1 answer

filepath check in R both absolute and relative

I have no idea how to do this. i have a list of filepath in a column. Now i want to check if at all the filepath is absolute path or not based on both windows or Linux system. Ex- somefunction("C:\eclipse-standard-kepler-SR1-win32\eclipse") ANS:…
Koushik Saha
  • 673
  • 1
  • 10
  • 25
5
votes
2 answers

.vimrc absolute or relative path in .vim script/plugin/whatelse

I actually have the following situation and thats what working actually: Imagine you have to work as root on a file but you want ur own .vimrc without calling "-u". So I started the following "plugin": let g:realuser=system('w | grep $(ps w | grep '…
boesing
  • 345
  • 3
  • 10
5
votes
1 answer

how to get relative url from absolute url in django view?

Is there a handy function that converts absolute url to relative url in django? Preferably, it would return the absolute url if base url doesn't actually match.
eugene
  • 39,839
  • 68
  • 255
  • 489
5
votes
1 answer

Technical terminology - URL Paths types: Absolute, relative, and

I understand that an absolute path is of the type: http://www.example.com/thisdir/4/5uy3/2/s.js and also, that relative paths are of the type: 5uy3/2/s.js (in relation to directory "4") but what is the term for the type of path that is prepended…
Zack
  • 1,615
  • 18
  • 26
5
votes
2 answers

SAS EG 4.1 path to code file

I'm using SAS Enterprise Guide 4.1 and my projects consist of a lot of code. That code is organized in external .sas files, mainly because .egp files are binary and plain text .sas files work better with git. Problem is that SAS EG 4.1 uses apsolute…
Dejan Peretin
  • 10,891
  • 1
  • 45
  • 54
5
votes
2 answers

LoadLibrary with Absolute Path returns Incorrect HMODULE with No Error

I have some code which is trying to load a Dll. I have encountered an odd 'error' with this. When trying to load the dll from an absolute path, I get a Non-Null HMODULE that gives no windows error codes on a GetLastError call (i.e. GetLastError…
funseiki
  • 9,167
  • 9
  • 36
  • 59
5
votes
4 answers

Grails resource warning log entry when using images with absolute:true

Using Grails 2.0.4. In building emails, I use a lot of images with absolute paths. Each one results in an annoying log entry. Is there an easy fix? They DO exist, it just seems the resource plugin doesn't like absolute paths. This happens…
Peter
  • 29,498
  • 21
  • 89
  • 122
4
votes
2 answers

Qt SQLite database without absolute path

Is there a way to reference the database.sqlite file without knowing the absolute path? _db = QSqlDatabase::addDatabase("QSQLITE"); _db.setDatabaseName("/the/path/i/dont/know/database.sqlite"); I already tried to add the database.sqlite to the…
alex
  • 4,922
  • 7
  • 37
  • 51
4
votes
3 answers

Define root path one time at one place

I like to refer images, css and php files using their absolute path, that is starting from root, with an address beginning with "/". I need to include php files that are all located at "/bin/res/include". I figured out I can't use absolute paths in…
dialex
  • 2,706
  • 8
  • 44
  • 74
4
votes
3 answers

PHP concatenation of paths

Is there a PHP internal function for path concatenation ? What possibilities do I have to merge several paths (absolute and relative). //Example:…
NaN
  • 3,501
  • 8
  • 44
  • 77
4
votes
4 answers

File_Picker plugin doesn't return absolute path for write file in Flutter

I'm using the file_picker plugin to pick files from device storage in my flutter app. I need an absolute path so that I can read/write files. But picking file using file_picker plugin just returns the path of the copied file which is stored in the…
Nayeem Islam
  • 51
  • 1
  • 7
4
votes
2 answers

Path to a file in a different drive?

My php file is here: D:/Appserv/www/x/y/file.php I want to load stuff from this folder: E:/foldie I don't know what path will lead me there. $somePath="HELP ME HERE!!!!" $dir=opendir($somePath); //looping through filenames while (false !==…
navand
  • 1,379
  • 1
  • 16
  • 20