Applicationsapp_module
VPS Files: write file
Creates or overwrites a file on the project's VPS over SFTP.
Request
Response
Errors
An error keeps the envelope: a negative code and a message in data.
Related methods
vps_fs_write_batchuserWrites many files to the project's VPS over a single SFTP session, creating parent directories as needed. Used for folder uploads.
vps_fs_deleteuserDeletes a file or directory (recursively) on the project's VPS over SFTP.
vps_fs_disk_usageuserReturns one-level disk usage (du) of a directory on the VPS, largest children first.
vps_fs_listuserLists a directory on the project's VPS over SFTP. Returns typed entries (file/dir, size, mtime, mode).
vps_fs_mkdiruserCreates a directory (recursively) on the project's VPS over SFTP.
vps_fs_readuserReads a file on the project's VPS over SFTP. Detects text/image/binary and caps inline size.
49 of 61 in Applications