How to create a temporary directory and get its path/ file name?
How can I create a temporary directory and get its path/file name in Python? 6 Answers 6
How can I create a temporary directory and get its path/file name in Python? 6 Answers 6
I use 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 happens to be another program wants to do the same thing, which mkdir-ed a temp dir with the same name, will cause the … Read more
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 settings\Temp. 5 Answers 5
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 there is a standard solution to be found in one of the usual libraries (Apache Commons etc.) ? 18 … Read more
Currently I am using following function to get the temporary folder path for current user: string tempPath = System.IO.Path.GetTempPath(); On some machines it gives me temp folder path of current user like: C:\Documents and Settings\administrator\Local Settings\Temp\ On some machines it gives me system temp folder path like: C:\Windows\TEMP MSDN Documentation also says that above API … Read more