temporary-directory Questions

10

Solved

What's the best way to get a temp directory name in Windows? I see that I can use GetTempPath and GetTempFileName to create a temporary file, but is there any equivalent to the Linux / BSD mkdtemp ...
Luxemburg asked 10/11, 2008 at 16:50

6

Solved

I used to create a tempfile, delete it and recreate it as a directory: temp=`tempfile` rm -f $temp # <breakpoint> mkdir $temp The problem is, when it runs to the <breakpoint>, there h...
Halfwitted asked 8/1, 2011 at 2:28

6

Solved

I have a problem with windows 10 and composer (last version). When I want to execute command "composer install" in my project, a symphony error is thrown: [Symfony\Component\Process\Exception\Runt...

6

Solved

I am creating a class in which I want to generate a temporary workspace of folders that will persist for the life of the object and then be removed. I am using tempfile.mkdtemp() in the def __init_...
Gammadion asked 14/11, 2012 at 13:29

6

How can I create a temporary directory and get its path in Python?
Mutilate asked 11/7, 2010 at 15:41

9

Solved

PowerShell 5 introduces the New-TemporaryFile cmdlet, which is handy. How can I do the same thing but instead of a file create a directory? Is there a New-TemporaryDirectory cmdlet?
Bernicebernie asked 1/1, 2016 at 19:59

5

Solved

Is there a cross-platform way of getting the path to the temp directory in Python 2.6? For example, under Linux that would be /tmp, while under XP C:\Documents and settings\[user]\Application set...
Lac asked 11/5, 2009 at 12:21

3

Solved

Apple's instructions for creating a temporary URL are to use FileManager.url(for:in:appropriateFor:create:). The example they give is (rewritten in Swift 3): let desktopURL = URL(fileURLWithPath: ...
Ieyasu asked 2/5, 2017 at 16:57

3

Solved

I have an image file named "Image.png", and it is saved in my main bundle (right beside the ViewController.swift file in the Project Navigator hierarchy). I want to save a copy of this image to the...
Russon asked 3/3, 2016 at 1:15

2

Solved

I am not reassigning the open keyword yet still receive this error. Any suggestions or direction to fix my error? with tempfile.mkdtemp() as test_dir: print(test_dir) AttributeError: __enter__...

18

Solved

Is there a standard and reliable way of creating a temporary directory inside a Java application? There's an entry in Java's issue database, which has a bit of code in the comments, but I wonder if...
Hyperplasia asked 6/3, 2009 at 1:17

1

Solved

I have some code which runs fine on unix systems, but not on Windows. I'd like to make it cross-platform, but am banging my head against the wall. The minimal repro is as follows: File 1: foo.py ...
Amyotonia asked 21/1, 2020 at 1:55

6

Solved

I'm writing a function in C++ which creates a temporary directory. Such function should be as most portable as possible, e.g. it should work under linux, mac and win32 environments. How do I achiev...
Illdefined asked 31/7, 2010 at 22:5

2

Solved

I'm trying to speed up Eclipse by having my projects on a RAM disk (stuck with a slow laptop and a heavy kind of eclipse project at the moment). Worked great for loading the project and such, but w...
Garges asked 26/4, 2012 at 7:24

1

Solved

I created an integration test for my pipeline to check if the right CSV file is generated: class CsvBatchSinkTest { @RegisterExtension static SparkExtension spark = new SparkExtension(); @Tem...
Locality asked 24/5, 2019 at 10:0

6

Solved

I want to use a temp directory that will be unique to this build. How can I get the pid of my make command in the Makefile? I tried: TEMPDIR = /tmp/myprog.$$$$ but this seems to store TEMPDIR a...
Translunar asked 5/10, 2010 at 0:36

4

Solved

My app has just been rejected by Apple because it was storing temporary or cache files in the documents directory. Right. Their rejection message states: Temporary files used by your app should ...
Lushy asked 10/8, 2012 at 8:16

1

Solved

I get the error "the temporary folder has not yet been created", which comes from an IllegalStateException thrown by the TemporaryFolder.getRoot() method. It looks like it's not initialized, but my...
Jerol asked 3/7, 2015 at 8:18

3

Solved

What is the proper way to safely create a temporary directory in Haskell? System.IO offers ways to create temporary files, but I can't find anything that does the same for directories, neither ther...
Bernadette asked 4/6, 2010 at 22:31

1

Solved

I am using the System.IO.Path.GetTempPath() method to retrieve the temporary folder from environment variables. However, I am finding that this will always return the TEMP or TMP variable for the c...
Micronesia asked 20/3, 2015 at 18:41

1

Solved

When does iOS clean the local app ./tmp directory? Note that this is not a dupe of this question. I'm asking about the app specific temporary folder, not the system wide one. You can use iExplore...
Natale asked 31/7, 2014 at 15:2

1

Solved

In my project, I have some files related to items on Server as shown below: Item-1 => file1.txt, file2.pdf and file3.doc Item-2 => file4.pdf, file5.ppt Item-3 => file6.txt, file7.docx and...
Booklover asked 14/4, 2014 at 5:36

2

Solved

I have a c# executable that triggers the WCF webservice in the same server.It was working fine until it started to throws this error message Message : Unable to generate a temporary class (result=...
Brigidbrigida asked 15/6, 2013 at 14:9

1

Solved

I tried to fix a problem with jvisualvm not detecting local java applications as explained at Why won't the VisualVM Profiler profile my application? Unfortunately I could not find where the t...
Grube asked 23/5, 2013 at 15:20

3

Solved

Please review my UnauthorizedAccessException ASP.NET error. Access to the path 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\8909a2b1\8566823\Nop.Plugin.Feed.Froogle....

© 2022 - 2024 — McMap. All rights reserved.