Questions tagged [pathname]

Anything related to pathnames. A pathname is a symbolic, hierarchical representation of the location of a file (or other resource) in a filesystem encoded as a string. The rules governing the syntax of pathnames differ among OSes (and sometimes among filesystems). Here is an example for Linux: "/home/user/foo/bar/hello.pdf" and one for Windows: "D:\data\foo\bar\hello.pdf"

189 questions
47
votes
2 answers

What is the convention for Lisp filename extension?

".el" is the convention for filename ending with Emacs Lisp programs. What is the convention when writing Common Lisp programs, please?
yves Baumes
  • 8,836
  • 7
  • 45
  • 74
29
votes
2 answers

Getting full URL with jQuery including parameters after question mark?

I am trying to use jQuery to get the current full URL of a page. The URL of a page looks like this: http://myurl.com/ebook?page=43 If I use window.location.pathname it only returns everything before the ? so I would just get…
user13286
  • 3,027
  • 9
  • 45
  • 100
28
votes
6 answers

JQuery Detect If in Homepage and Homepage PLUS url Variables

I am using this code to detect the homepage and it works great: var url= window.location.href; if(url.split("/").length>3){ alert('You are in the homepage'); } My problem is that I also need to detect if the url has variables for…
Satch3000
  • 47,356
  • 86
  • 216
  • 346
21
votes
1 answer

What is path //, how is it different from /

We know root directory is /, and according to posix, there is another directory // which differs from /. When you ls / and ls //, the output is the same, so as stat, however if you cd / and cd //, they are different, though the directory content are…
dspjm
  • 5,473
  • 6
  • 41
  • 62
11
votes
1 answer

How to find an EXE's install location - the proper way?

I am making a software in C# and MATLAB that calls another software (CMG) to do some processing. My problem is that the address of the software I have put in my program is only correct on my personal computer and not on the customers' computers (I…
Sandbad
  • 113
  • 1
  • 6
10
votes
3 answers

Linux CLI - How to get substring from JSON jq + grep?

I need to pull a substring from JSON. In the JSON doc below, I need the end of the value of jq '.[].networkProfile.networkInterfaces[].id' In other words, I need just A10NICvw4konls2vfbw-data to pass to another command. I can't seem to figure out…
Adoyt
  • 395
  • 2
  • 4
  • 17
10
votes
7 answers

Getting a mp3 file to play using javafx

I have spent hours today looking up how to get some form of audio in eclipse and have had trouble every step of the way. Currently I have something that should work but I get an error: Exception in thread "main" java.lang.IllegalArgumentException:…
Kasarrah
  • 315
  • 2
  • 4
  • 14
9
votes
4 answers

Difference between forward and backslash

What is the difference in using a forward slash and backslash in navigating file systems. Also what is the difference between ./ and ../?
JBone
  • 3,163
  • 11
  • 36
  • 47
9
votes
3 answers

How to check whether a File exists

I have an Array of Strings and I want to select only these Strings which are paths to files: My path is "~/dlds/some_file.ics" where ~/dlds is a symlink to ~/archive/downloads on my system. The file has following permissions: -rw-r--r-- My code (I…
musicmatze
  • 4,124
  • 7
  • 33
  • 48
9
votes
3 answers

bat file: get parent pathname

The following mostly works. 'Mostly', because the use of the SOMETHING..\tasks\ pathname confuses Spring when a context XML file tries to include another by relative pathname. So, what I seem to need is a way, in a BAT file, of setting a variable to…
bmargulies
  • 97,814
  • 39
  • 186
  • 310
8
votes
7 answers

How to handle filenames with spaces?

I use Perl on windows(Active Perl). I have a perl program to glob the files in current folder, and concatenate them all using dos copy command called from within using system()... When i execute, this gives a dos error saying "The system cannot find…
goldenmean
  • 18,376
  • 54
  • 154
  • 211
8
votes
3 answers

jQuery if Location.Pathname contains

I am currently using the following code to target individual pages such as http://my-website.com/about/ if (document.location.pathname == "/about/") { //Code goes here } I am wondering how to do the same for all pages that have a…
SBM
  • 137
  • 1
  • 2
  • 10
8
votes
1 answer

how do I create a file object from an absolute pathname?

I think my problem will take some explaining of the background. My assignment is to create a basic server that will send HTML files on my system that clients request. I was told to test my server by just entering localhost:8080/index.html in my…
art3m1sm00n
  • 389
  • 6
  • 9
  • 19
8
votes
1 answer

Using folder pathname, save all image files and file names

I trying to create a 360 degree animation from In Design-to-HTML conversion. I get the folder name, and inside that folder are 50 to 80 images. I need to save those images in my folder, and to save each image name inside the script. Here's my…
NaveenDAlmeida
  • 1,251
  • 2
  • 10
  • 11
7
votes
3 answers

Javascript pathname referrer

How can do the same function in javascript that is document.location.pathname - except with the referrer? so something like document.referrer.pathname? Thanks.
Matt
  • 5,005
  • 10
  • 32
  • 39
1
2 3
12 13