tagged [path]

How do I get the filename without the extension from a path in Python?

How do I get the filename without the extension from a path in Python? How do I get the filename without the extension from a path in Python?

9 Apr at 08:10

Determine via C# whether a string is a valid file path

Determine via C# whether a string is a valid file path I would like to know how to determine whether string is valid file path. The file path may or may exist.

8 Dec at 19:48

Does anyone know where I can find a simple version of the A* algorithm in php?

Does anyone know where I can find a simple version of the A* algorithm in php? Or version in a similar language. One that's for all types of maps not just 2d.

28 Jul at 17:9

How to get the path to the Windows fonts folder?

How to get the path to the Windows fonts folder? I'm using C# to get the exact path of the system's fonts folder. Couldn't find which class/dll does it.

5 Oct at 03:8

Relative path to absolute path in C#?

Relative path to absolute path in C#? I have xml files that contain href file paths to images (e.g. "....\images\image.jpg"). The hrefs contain relative paths. Now, I need to extract the hrefs to the ...

25 Jan at 16:40

uniform way to get application path both for windows application and asp.net application

uniform way to get application path both for windows application and asp.net application is there a uniform way in .NET to get application path (physical) both for windows applications and asp.net app...

11 Nov at 08:8

C# (non-static) class to represent paths

C# (non-static) class to represent paths I'm looking for a C# class . I would like to use it (instead of strings) as the data type of variables and method arguments (top reasons: type safety, concat-p...

20 Jun at 06:48

What is the difference between user variables and system variables?

What is the difference between user variables and system variables? What is the difference between user variables such as `PATH`, `TMP`, etc. and system variables? I accidentally deleted the user vari...

How to make an absolute path relative to a particular folder?

How to make an absolute path relative to a particular folder? For example, how can I make this relative to this folder if the expected result is

28 Jan at 04:28

Return value of os.path in Python

Return value of os.path in Python For this code: When will os.path.exists('what') print `True`?

28 Dec at 01:35

Getting relative virtual path from physical path

Getting relative virtual path from physical path How can I get the relative virtual path from the physical path in asp.net? The reverse method is like below: But what is the reverse of the upper metho...

5 Apr at 04:43

How to check if one path is a child of another path?

How to check if one path is a child of another path? How to check if one path is a child of another path? Just checking for substring is not a way to go, because there can items such as . and .., etc

11 Nov at 09:26

Change file name of image path in C#

Change file name of image path in C# My image URL is like this: I want to change it so it looks like this: Is there any short way to do it?

29 Nov at 11:3

Display current path in terminal only

Display current path in terminal only I'm SSH'd into a computer, so I can't use a GUI to access the path name. Is there a way that you can see the path directly on terminal without having to use Nauti...

8 Apr at 15:8

How to add include path in Qt Creator?

How to add include path in Qt Creator? I have a project I'm working on in Qt creator that requires a third-party library. I want to add the headers to the include path for the project. How do I do thi...

16 May at 20:50

Convert UNC path to 'file:///' URL in ASP.NET

Convert UNC path to 'file:///' URL in ASP.NET I need to convert UNC paths to `file:///` URLs. For example: Is there a built-in function for this?

30 Mar at 20:55

what does it mean "(include_path='.:/usr/share/pear:/usr/share/php')"?

what does it mean "(include_path='.:/usr/share/pear:/usr/share/php')"? I have file structure on EC2 like : but facing some file referencing problem. I have tried file referencing as: ``` `require_once...

8 Aug at 06:17

Where does Chrome store extensions?

Where does Chrome store extensions? I looked in: for unpacked extensions, but that folder is empty for me. For newer versions, where does Chrome store the files?

__FILE__ macro shows full path

__FILE__ macro shows full path The standard predefined macro `__FILE__` available in C shows the full path to the file. Is there any way to short the path? I mean instead of I see or

30 Mar at 16:39

How to combine paths in Java?

How to combine paths in Java? Is there a Java equivalent for [System.IO.Path.Combine()](http://msdn.microsoft.com/en-us/library/system.io.path.combine.aspx) in C#/.NET? Or any code to accomplish this?...

22 Aug at 08:53

Unrecognized escape sequence for path string containing backslashes

Unrecognized escape sequence for path string containing backslashes The following code generates a compiler error about an "unrecognized escape sequence" for each backslash: I guess I need to escape b...

9 Aug at 07:51

How to retrieve absolute path given relative

How to retrieve absolute path given relative Is there a command to retrieve the absolute path given a relative path? For example I want $line to contain the absolute path of each file in dir `./etc/`

24 May at 13:13

Check if full path given

Check if full path given Is there a method to check if given path is full path? Right now im doing this: But there must be more elegant way for checking this?

23 Jun at 12:36

Why doesn't Dijkstra's algorithm work for negative weight edges?

Why doesn't Dijkstra's algorithm work for negative weight edges? Can somebody tell me why Dijkstra's algorithm for single source shortest path assumes that the edges must be non-negative. I am talking...

Difference between forward slash (/) and backslash (\) in file path

Difference between forward slash (/) and backslash (\) in file path I was wondering about the difference between `\` and `/` in file paths. I have noticed that sometimes a path contains `/`and sometim...

2 Jul at 20:52