Questions tagged [tempdir]

a temporary folder or temporary directory is a directory used to hold temporary files. Many operating systems and some software automatically delete the contents of such directories at boot-up or at regular intervals.

31 questions
2
votes
5 answers

Get system folder paths in Go?

Is it possible to get the path of system folders in Go, in a cross-platform way? eg. temp folders, "document" folders, etc. I found ioutil.TempFolder/File but they do something different. Any idea?
laurent
  • 88,262
  • 77
  • 290
  • 428
1
vote
1 answer

how to use Junit5 @TempDir with Kotlin ? ("JvmField can only be applied to final property" compile error)

I'm trying (without any luck so far) to use Junit5 @Tempdir annotation with Kotlin. Following a previous stackoverflow post (link here), I've tried the code below: @SpringBootTest class MyClass { @TempDir @JvmField var tempFolder: File?…
user2038596
  • 535
  • 1
  • 3
  • 14
1
vote
1 answer

Export flextable to word in R

i am new to R. I am very grateful for every help. I created a flextable and want to export the files to a word document. This works fine. I used a tempfile as suggested "https://davidgohel.github.io/flextable/reference/save_as_docx.html". I tried to…
gideon1321
  • 51
  • 1
  • 5
1
vote
4 answers

Crystal Reports 2008 InprocServer + TempDir = "Operation not yet implemented"

I have a .NET web app that uses CR 2008 for reports. The server it's deployed on is saddled with McAfee, and we want to tell CR to use a temp directory other than the Windows temp dir. Google found me the following registry key: SOFTWARE\Business…
Cory
1
vote
0 answers

Change temporary directory without opening R

Today morning when I tried to start R in my Ubuntu machine, I got a new error saying : Fatal error: cannot create 'R_TempDir' However when I search over Internet, I realized that my TMP directory is full as below : df /tmp Filesystem 1K-blocks …
Bogaso
  • 2,838
  • 3
  • 24
  • 54
0
votes
1 answer

Delete files before creating new from temp using Java file method

I have below code where i am trying to create new file in temp directory which is xml file and its working fine. Now everytime i run the code, i want to delete the previous xml file from this temp directory before creating new xml file because of…
Andrew
  • 3,632
  • 24
  • 64
  • 113
0
votes
1 answer

deleting existing files from temp directory in Azure

We are using the following to write a file to the temp direcotry in Azure webapp for almost a year: string tempName = Path.GetTempFileName(); using (var tempFile = new FileStream(tempName, FileMode.Create)) { await…
user1902346
  • 799
  • 1
  • 12
  • 21
0
votes
1 answer

how to import a jsp from temp directory in jstl

I have some dynamically generated jsp content I'd like to (jstl) c:import into another jsp page. Currently I have the dynamically generated jsp written to a file in the servlet temp directory (javax.servlet.context.tempdir) but can't work out how I…
0
votes
1 answer

Manipulating temporary file paths

I have a list of files on different temporary paths in tempdir(). The paths are given here, where /tmp/Rtmp9pF0OF is my tempdir() for my R session. [1] "/tmp/Rtmp9pF0OF/4fc42cb004a7160951778110/0" "/tmp/Rtmp9pF0OF/4fc42cb004a7160951778110/1" [3]…
Agaz Wani
  • 5,514
  • 8
  • 42
  • 62
0
votes
1 answer

How to add the temp directory in Win 7 as a Python variable

The temp directory in win 7 is %userprofile%\AppData\Local\Temp and I'd like to add it to a python script as a variable to be used to create a text file there. However, because of the % at the beginning, it makes python unable to identify it. I…
AhmedWas
  • 1,205
  • 3
  • 23
  • 38
0
votes
0 answers

Error from Google API PHP Config.php file - Fatal Error - Call to undefined function sys_get_temp_dir()

The Google API PHP Client library has a file named Config.php. I'm getting an error from that file, from line 139. 'directory' => sys_get_temp_dir() . '/Google_Client' The error is: Fatal error: Call to undefined function sys_get_temp_dir() in…
Alan Wells
  • 30,746
  • 15
  • 104
  • 152
0
votes
1 answer

How to access temp directory of the local machine

I am working on an application in which I need to open attachments. I need to click on the "Open" button and open a pdf file. The way I do it, is by getting the content from the Server and writing it to a location on the temp directory. However…
SSM
  • 45
  • 1
  • 10
0
votes
1 answer

PHP upload file without having to create a temp

So I am trying to use XAMPP server on ubuntu (Xampp 1.7.7 and yes, I know it is old) to upload files to a specific directory using PHP. I know that it can be done, but every bit of code I can find wants to use a temp name. I think it checks to see…
doglover129
  • 3
  • 1
  • 5
-1
votes
1 answer

Why does chaining methods on a TempDir cause File creation to fail?

I'm a new rustecean, so I apologize if this question is silly. I'm trying to understand why chaining methods on a TempDir causes File::create calls on the same Path to fail. My situation is this: I'm writing a small library to convert between JSON…
Jonathan
  • 3,369
  • 4
  • 22
  • 27
-1
votes
1 answer

Initialise struct field as temporary directory and read from directory

I am trying to have a struct which has a field which I assume should be of type Result. When I initialise an implementation of the field with new(), I would like that particular field to be initialised by the creation of a new temp…
Lexka
  • 359
  • 1
  • 3
  • 9