path-manipulation Questions

12

The below simple java code getting Fortify Path Manipulation error. Please help me to resolve this. I am struggling from long time. public class Test { public static void main(String[] args) { F...
Lumpen asked 2/10, 2012 at 12:53

14

Solved

I am trying to learn python and am making a program that will output a script. I want to use os.path.join, but am pretty confused. According to the docs if I say: os.path.join('c:', 'sourcedir') ...
Molar asked 11/3, 2010 at 5:38

8

Solved

Suppose I have variables dir and file containing strings representing a directory and a filename, respectively . What is the proper way in emacs lisp to join them into a full path to the file? For...
Facsimile asked 19/10, 2010 at 1:18

10

Solved

In python, suppose I have a path like this: /folderA/folderB/folderC/folderD/ How can I get just the folderD part?
Hieronymus asked 13/10, 2010 at 15:3

4

Solved

A Fortify security review informed us of some path manipulation vulnerabilities. Most have been obvious and easy fixes, but I don't understand how to fix the following one. string[] wsdlFiles = Sy...
Quadrille asked 10/4, 2012 at 17:19

10

Solved

I program in WPF C#. I have e.g. the following path: C:\Program Files\hello.txt and I want to extract hello from it. The path is a string retrieved from a database. Currently I'm using the fol...
Scend asked 3/8, 2011 at 2:45

1

Solved

Is there any standard (or widely used) simple POSIX path manipulation library for C (path join, filename stripping, etc.) ? Actually, because I'm mostly working under Windows, I currently use 'shl...
Pisces asked 17/1, 2012 at 20:5
1

© 2022 - 2024 — McMap. All rights reserved.