vae_extra_ftp_user_path()

Use the vae_extra_ftp_user_path() function to retrieve the filesystem path to the home directory of an extra FTP user on Vae.

One clever way these are often used is as a way to store files that are shared between the Staging and Production environments. Both environments have read and write access to these folders.

Please use this function rather than hardcoding any paths anywhere. Paths are subject to change at any time without notice. We do live-migrate our customers from one NFS cluster to another, so protect yourself from your paths changing– use this function!

Usage

vae_extra_ftp_user_path($username)

  • $username - username of the FTP user in question.

Returns

Returns the filesystem path to the home directory of an extra FTP user on Vae.

Sample Usage

<?php
// store something in FTP storage
file_put_contents(vae_extra_ftp_user_path("mystorage") . "filename.txt", $data);