Questions tagged [realpath]

The canonical path of the specified filename.

The canonical path of the specified filename, eliminating any symbolic links encountered in the path (if they are supported by the operating system)

127 questions
0
votes
1 answer

Absolute path to symbolic link

Is there possibility of retrieving absolute path of symbolic file in bash? I cannot use realpath() and readlink() gives path of target. But i need absolute path of that symlink.
0
votes
0 answers

PHP : realpath , difference between windows and unix paths

I know that there is a difference between the result of the function realpath between windows and unix paths I have this function for create a zip , and i don't know how to convert it to work both on windows and unix (for now only works on…
WhiteLine
  • 1,919
  • 2
  • 25
  • 53
0
votes
1 answer

Segfault when accessing char[]

I've got a function int foo() { ... char* real_path_buffer = (char*)malloc(sizeof(char)*PATH_MAX); realpath("a/certain/path/that/doesnt/exist", real_path_buffer); ... } That makes a call to realpath in Android bionic char*…
Reuben Tanner
  • 5,229
  • 3
  • 31
  • 46
0
votes
1 answer

How can I remove relative path components but leave symlinks alone in Perl?

I need to get Perl to remove relative path components from a Linux path. I've found a couple of functions that almost do what I want, but: File::Spec->rel2abs does too little. It does not resolve ".." into a directory properly. Cwd::realpath does…
We Are All Monica
  • 13,000
  • 8
  • 46
  • 72
0
votes
1 answer

app real path issue in spock integration test case

I am working on integration test case of an action which generate pdf using jasper. That jasper have a sub-report. To get the path of the sub-report (abc.jasper in web-app/reports/) I am first fetching real path…
MKB
  • 7,587
  • 9
  • 45
  • 71
0
votes
2 answers

Getting the actual physical path of project in eclipse

I am using the latest release of Eclispe (i.e. Eclipse Luna). I have a web project set up and working. Now I want the real physical path of my web project. I have used the real path of my servlet context and it gives me the deployed path under…
Darshan Lila
  • 5,772
  • 2
  • 24
  • 34
0
votes
0 answers

Is it possible to use vfsStream with cakephp (2.4)?

I wanted to test the filesystem operations of my cakephp-app using vfsStream, but had to find out that it is seemingly not possible to write files to the virtual filesystem using cakephp`s File and Folder classes. The reason for this seems to be the…
0
votes
2 answers

How to use the php define properly

I have this line of php code that sets the main folder of my site as the storage folder. How can I change this to the 'tmp' folder? define('COOKIELOCAL', str_replace('\\', '/', realpath('./')).'/'); For example mysite.com, I want the files stay in…
0
votes
1 answer

command line parameters separated by null character

As filenames may contain spaces and new lines \n, I am using null character as field separator. But I do not know how to say to find that the input directories are null character separated. My failed attempt: foo() { IFS='\0' find "$@" } $…
oHo
  • 51,447
  • 27
  • 165
  • 200
0
votes
1 answer

cakephp get realpath of view and layout

How can i retrieve absolute path of view and layout file in cakephp action. I cant find useful method or property in // in action var_dump($this); Thank desire out put…
0
votes
2 answers

I can't get the real path from Servlet (Java EE)

When I would like to get a real path in Java EE, using this instructions: String rootPath = getServletConfig().getServletContext().getRealPath("/"); System.out.println(rootPath); The result is:…
Saad Lamarti
  • 300
  • 1
  • 5
  • 15
0
votes
1 answer

gmake: a target completes but $(realpath ...) doesn't find it

Environment stuff: Solaris NFS file servers running NFS 3 Errors occur in Linux or Solaris environments Using GNU Make 3.82 Using Sun Studio compilers, if that matters This is a vastly simplified example of the build I'm looking at: all: ${list of…
Brian Vandenberg
  • 4,011
  • 2
  • 37
  • 53
0
votes
1 answer

php include path by using .. (double dot) to reference

I got a question regarding, PHP include path, it behaves differently in two environment. Folder…
Shiro
  • 7,344
  • 8
  • 46
  • 80
0
votes
1 answer

Get real path with Expression Language

I have to get the real path of a JSP, and I have to do it with Expression Language. Then, I send the path in a TagLib. I have found that : But I have a warning on rtexprvalue saying…
Emilie
  • 668
  • 1
  • 9
  • 21
0
votes
2 answers

PHP: glob( realpath() ) reads directory but paths are incorrect

I don't know what I don't get here but I'm trying to read a directory with php and create a JS array with all the image-paths inside of it. So right now I have the following structure on my local…
matt
  • 42,713
  • 103
  • 264
  • 397
1 2 3
8
9