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
-1
votes
1 answer

Creating a text file with java without using absolute path

following the question I asked before How to have my java project to use some files without using their absolute path? I found the solution but another problem popped up in creating text files that I want to write into.here's my code: private String…
Navid Nasro
  • 19
  • 1
  • 6
-1
votes
1 answer

How can we import one python in another python file, Not using absolute path

I know the general process of importing the python file. The importing file and the file in which we want to import must be present in same directory. If I want to import the file which is present in some other directory by using absolute path, I…
-1
votes
1 answer

this.getClass().getClassLoader().getResource("").getPath() is NPE possible here?

I got code review comment that below line could return NPE this.getClass().getClassLoader().getResource("").getPath() As I'm refering self class, is any chance I can get NPE? I found this answer which says if I load external file then there is NPE…
Swapnil Kotwal
  • 5,418
  • 6
  • 48
  • 92
-1
votes
2 answers

how to get absolute path from relative path in command line

I run this command "httpd -d ./inst2 -k start" to boot Apache Server, and I can see this command line through "ps -ef | grep httpd". My question is if i don't know the absolute path, is there a way to get the absolute path of "./inst2"? Thanks
sudo
  • 69
  • 9
-1
votes
1 answer

Shelve Database in Absolute Path

In Python 3.6 I am trying to but a database called test.db in the current user's home directory. Currently, I am getting that directory with home = os.path.expanduser("~") (after importing os). My problem is that when I run s = shelve.open(home +…
Nobody
  • 133
  • 1
  • 13
-1
votes
1 answer

Smarty absolute path

I am using smarty, and I want to have link to file kategorija.php with one argument. Why I get this strange link in the browser? http://localhost/ljekarna/%60http://localhost/ljekarna/kategorija.php?id=1 This is my code with absolute path And…
Fale1994
  • 67
  • 14
-1
votes
2 answers

right path of image being referred to in exec() in php

I am trying to use the following script to count the number of pdf pages in a pdf file. $filename = $_ENV{'HOMEDIR'}."/www/path/to/pdf/file"; $cmd = "/usr/local/nf/bin/identify -density 12 -format '%p' '$filename' "; $out =…
Rahul
  • 912
  • 10
  • 18
-1
votes
2 answers

Get absolute path of "web content" folder in Java

I want to get the absolute path of Web content folder in source code so I can retrieve another folder to upload file. I tried ServletActionContext.getServletContext().getRealPath("images") to get the folder image in source code. Expected result…
Anh Nguyen
  • 313
  • 5
  • 11
  • 22
-1
votes
1 answer

Basic steps to develop python API in Unix environment

I am developing an API in Unix environment for virtual machines. Most of the modules are developed in python. I have few questions on this. I have the file extension as abc.py . I would like to make this as a command. For example , "virtman dominfo…
Dany
  • 2,692
  • 7
  • 44
  • 67
-1
votes
1 answer

How do I get the absolute path from my site without PHP?

I need to find the absolute path of my site in the same way that php outputs it if I run the file directly with the following code in the root of my site: Problem is, I have .htpasswd implemented for…
Solomon Closson
  • 6,111
  • 14
  • 73
  • 115
-2
votes
1 answer

how to implement absolute route in angular using routerLink in angular

I have created a component to create posts, I want to make this routerLink an absolute path from app.routing, knowing that I have used this component with lazy loading
Dev
  • 17
  • 7
-2
votes
1 answer

FetchError: request failed

I have a bug, i'm trying to make his tutorial for twitter clone in nextjs+tailwindcss+typescript https://www.youtube.com/watch?v=rCselwxbUgA&t=1357s&ab_channel=SonnySangha 1:42:05 / 3:17:52 I did exactly the same but i feel like my IDE or my nextJS…
-2
votes
1 answer

How can I get access to he absolute URL in Symfony and go one level up?

My absolute URL is linked to my public folder: image It works fine like this, but in one case I need to load an image with an absolute URL but not to the public folder, instead, the…
peace_love
  • 6,229
  • 11
  • 69
  • 157
-2
votes
2 answers

Is this a relative path or an absolute path?

I'm having a little difficulty determining if the path in the code below is a relative path or an absolute path. Also, in this case, I'm trying to open an image I placed inside a folder called "img" which is inside my java project directory. Please…
Songg Tùng
  • 139
  • 8
1 2 3
55
56