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?
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.
- Modified
- 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.
- Modified
- 28 Jul at 17:9
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...
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 ...
- Modified
- 25 Jan at 16:40
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...
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...
- Modified
- 19 Dec at 00:48
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
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`?
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...
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
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?
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...
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...
- Modified
- 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?
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?
- Modified
- 24 Feb at 10:59
__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
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?...
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...
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/`
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?
- Modified
- 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...
- Modified
- 9 May at 06:11
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...
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...
- Modified
- 8 Aug at 06:17