Top "Path-manipulation" questions

Given a filesystem path, is there a shorter way to extract the filename without its extension?

I program in WPF C#. I have e.g. the following path: C:\Program Files\hello.txt and I want …

c# path filenames file-extension path-manipulation
How to get only the last part of a path in Python?

In Python, suppose I have a path like this: /folderA/folderB/folderC/folderD/ How can I get just the folderD …

python path path-manipulation
Python os.path.join on Windows

I am trying to learn python and am making a program that will output a script. I want to use …

python windows path-manipulation
How to fix "Path Manipulation Vulnerability" in some Java Code?

The below simple java code getting Fortify Path Manipulation error. Please help me to resolve this. I am struggling from …

security fortify path-manipulation
What is the correct way to join multiple path components into a single complete path in emacs lisp?

Suppose I have variables dir and file containing strings representing a directory and a filename, respectively . What is the proper …

elisp filenames path-manipulation
How to correct Path Manipulation error given by fortify?

I need to read the properties file kept in user_home folder. PropsFile = System.getProperty("user.home") + System.getProperty("file.…

fortify path-manipulation
Path Manipulation (security vulnerability)

A Fortify security review informed us of some path manipulation vulnerabilities. Most have been obvious and easy fixes, but I …

c# .net security path-manipulation