Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section Scripting / API
  • Search

v-make-tmp-file ?

Questions regarding the API
Application Programming Interface
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
cdg
Posts: 48
Joined: Sun Aug 16, 2015 3:11 am
Contact:
Contact cdg
Website

Os: Ubuntu 15x
Web: apache + nginx
v-make-tmp-file ?
  • Quote

Post by cdg » Mon Jun 25, 2018 4:32 am

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: https://github.com/serghey-rodin/vesta/ ... 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.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: v-make-tmp-file ?
  • Quote

Post by skamasle » Wed May 01, 2019 11:15 am

Intresting, I think this command actually not exists, and was replaced just by mktemp
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Scripting / API”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password