filepath Questions

4

Solved

How can one with minimal effort (using some already existing facility, if possible) convert paths like c:\aaa\bbb\..\ccc to c:\aaa\ccc?
Contemporize asked 12/8, 2009 at 14:49

2

Solved

Please help me to find an elegant way to get file path without extension; cut off file extension from path or something.
Coition asked 26/1, 2016 at 5:25

3

I have long been using +[NSURL fileURLWithPath:] because it's convenient, but in profiling I found that this was a source of bottlenecks because it queries the filesystem before calling down to +[N...
Tap asked 6/9, 2013 at 19:39

5

Solved

I tried to get the directory of the console application using the below code, Assembly.GetExecutingAssembly().Location but this one gives me where the assemble resides. This may be different fro...
Eppie asked 12/6, 2012 at 9:19

4

Solved

I think i have a rather simple question. http://www.vogella.com/blog/2011/06/14/android-downloadmanager-example/ I have been following a tutorial in the above url. How do I change the filepath f...
Katekatee asked 6/6, 2012 at 0:16

13

Solved

String variable contains a file name, C:\Hello\AnotherFolder\The File Name.PDF. How do I only get the file name The File Name.PDF as a String? I planned to split the string, but that is not the op...
Decalcomania asked 25/1, 2013 at 16:39

4

Solved

I have many file paths in a file that look like so: /home/rtz11/files/testfiles/547/prob547455_01 I want to use a bash script that will print all the filenames to the screen, basically whatever co...
Conglobate asked 21/4, 2015 at 1:18

6

Solved

Is there any special character that cannot be a part of the path in Windows or Unix that I can use it as a separator?
Abseil asked 9/2, 2010 at 9:21

4

Solved

i want to know if and how i could use a Wildcard in a Path definition. I want to go one folder deeper and tried using the * but that doesnt work. I want to get to files that are in random folders....
Mucor asked 12/10, 2016 at 8:29

6

Solved

I want to insert a directory name in the middle of a given file path, like this: directory_name = 'new_dir' file_path0 = 'dir1/dir2/dir3/dir4/file.txt' file_path1 = some_func(file_path0, directory...
Oubre asked 19/8, 2019 at 19:6

2

Solved

I have this piece of code auto path = std::filesystem::path("/root/home/../opt/."); I had tried std::filesystem::absolute() but then realized it is for something else than the reasult I ...
Jedjedd asked 4/7, 2020 at 11:42

6

I have a bug when my app runs on the iPhone but not when it runs on the simulator. I was using the length of the home directory path to extract the relative path of a file in /Documents. Unfortunat...
Milligram asked 21/2, 2013 at 0:57

6

I am following the tutorial here. My file looks like this: from flask import Flask app = Flask(__name__) @app.route("/") def main(): return "Welcome!" if __name__ == "__main__": app.run() I...
Ava asked 12/10, 2016 at 2:43

5

How does one obtain the location of the executable of the currently running JVM during runtime? I would like to instantiate another JVM as a subprocess using the ProcessBuilder class. I am aware t...
Falsify asked 2/8, 2010 at 22:53

10

Solved

I need to get the last part of current directory, for example from /Users/smcho/filegen_from_directory/AIRPassthrough, I need to get AIRPassthrough. With python, I can get it with this code. imp...
Ballance asked 16/5, 2011 at 13:39

2

Solved

I've been looking around but I have not found a solution for this problem: I want to create a class library that has a configuration file under a sub-directory called Configuration. I want that cla...
Mors asked 22/4, 2009 at 17:3

2

Solved

I am developing a python project using pycharm. However, the problem is that it refuses to load files in which the relative path includes ../. When I try self.image = pygame.image.load("../resour...
Klotz asked 5/6, 2016 at 0:19

7

Solved

I need to extract the name of the parent directory of a certain path. This is what it looks like: C:\stuff\directory_i_need\subdir\file.jpg I would like to extract directory_i_need.
Stroke asked 13/4, 2012 at 22:48

1

I'm trying to determine which matcher to use for a few different use cases we have. Most importantly we want to replicate the behaviour that the gitignore parser has. We were considering using glo...
Praenomen asked 7/12, 2018 at 18:35

2

I'm developing a web-application with Django, which should manage and process a huge amount of user' files in local intranet. As the Django app and user files will host in the same local network, t...
Borzoi asked 27/1, 2020 at 18:48

5

Is there a easy way to get the filePath provided I know the Filename?
Questionnaire asked 22/11, 2012 at 9:47

6

Is it possible to get the size of a file in C# without using System.IO.FileInfo at all? I know that you can get other things like Name and Extension by using Path.GetFileName(yourFilePath) and Pat...
Grano asked 18/1, 2013 at 21:29

3

How can I escape the backslashes in the string: 'pictures\12761_1.jpg'? I know about raw string. How can I convert str to raw if I take 'pictures\12761_1.jpg' value from xml file for example?
Permittivity asked 8/6, 2011 at 7:46

6

Solved

I am looking to get the filename from the end of a filepath string, say $text = "bob/hello/myfile.zip"; I want to be able to obtain the file name, which I guess would involve getting eve...
Jehanna asked 30/6, 2010 at 14:2

1

Solved

I want to write content to a file by a non-trivial path and create all parent directories if they don't exist. So the following code: mkFile "foo/bar/baz/quux.txt" will create all directories fo...
Ferula asked 3/11, 2019 at 16:42

© 2022 - 2024 — McMap. All rights reserved.