Page 1 of 1

v-make-tmp-file ?

Posted: Mon Jun 25, 2018 4:32 am
by cdg
I was taking a look at the api webhook and saw the v-make-tmp-file command in the web/api/index.php file. This would be simpler to use than my current method of FTP over PHP to make then delete tmp files when necessary.

The command has no directory hard coded into it so I would assume it is either being referenced elsewhere to a tmp folder or the tmp files would be placed within that same directory. I ran the command and it returned a returncode of 0 indicating that it was successful, but there is no indication of where the file is stored, whether that be the user tmp directory, the php tmp directory, a specific folder, etc, and a file search returned no results for the file.

I attempted supplying a directory within the request as the command has no directory supplied, and the response was successful, but there was no file present in any specified directories making me believe that there could be a permissions problem, or a directory supplied elsewhere.

I looked on Github and found this command was added in 2015 under this commit: ... 98fbadcab6 but I can't find any usage for the API or info on directories.

Does anyone know anything about this command or its functionality? Thanks.

Re: v-make-tmp-file ?

Posted: Wed May 01, 2019 11:15 am
by skamasle
Intresting, I think this command actually not exists, and was replaced just by mktemp