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
3 answers

Zend Framework PHP -> realpath()

im trying to create a Zend Framework custom Provider and here: if($module == 'default'){ $modelsPath = dirname(__FILE__) . '/../application/models'; $filePath = realpath($modelsPath) . '/' . $name . '.php'; } else …
fre2ak
  • 329
  • 2
  • 8
  • 18
-1
votes
1 answer

Receiving ServletContext Into A Plain Java Class?

I'm just starting out learning some JSP and servlets today and was wondering if it's possible to get the session's ServletContext as a variable and pass it to a plain Java class? If so, how may I do that? My simple servlet: public class myServlet…
James McTyre
  • 103
  • 7
-1
votes
3 answers

C program: determine which directory a file is in

What would be a good method to determine which directory a file is in? I would use realpath(), but that returns the absolute path of the file or directory to which a symlink is pointing. For instance, if the argument is the basename of a file, and…
Andy Alt
  • 297
  • 2
  • 12
-1
votes
1 answer

How to get relative path for input text file; getServletContext() returns null

I have tried getServlerContext().getRealPath() in every way possible. Using it I can't get away from a NullPointerException. And many other suggestions from Stack Overflow. None work successfully. My input text file that I'm trying to read from in…
te7
  • 601
  • 1
  • 6
  • 23
-1
votes
1 answer

Use jQuery to get the file input's selected filename with actual full path

I used this: $('input[type=file]').val() to get the full file path selected, but it returned the fakepath, as in "C:\fakepath\filename.jpg". The "fakepath" part was actually there - not sure if it's supposed to be, but this is my first time working…
tweetycoco
  • 9
  • 1
  • 3
-2
votes
2 answers

How to get RealPath of Captured image on Camera

I want to get imageview realPath and write textview.. I can get RealPath in library but ı cant in camera Here is My Code This Code Take Library İmage an Path private void takeLibrary(int sdk, String uriPath,String realPath){ …
Alpaslan
  • 17
  • 1
  • 6
-2
votes
2 answers

How to get directory of exec files of any commands on terminal in C?

I am rewriting the problem since it's not clearly understood as far as I see. I implement my own shell in C which needs to support all commands the original one does. The problem is to execute all existing UNIX bash commands in C without using…
Yusuf Kamil AK
  • 771
  • 8
  • 17
1 2 3
8
9