Reset Password
Check your e-mail for further instructions.
Reset
Name
file_truncate
Auth
yes
Description
Sets file size to length bytes.
If length is less than the file size, then the extra data is cut from the file, else the the file contents are extended with zeroes as needed.
The current offset is not modified.
Required
Parameter | Description |
fd | int the file descriptor, for which the size and offset are given |
length | int to how much bytes to set the file size |
Example
{ result: 0 }
Errors
Code | Description |
1000 | Log in required. |
1007 | Invalid or closed file descriptor. |
1010 | Please provide 'length'. |
2000 | Log in failed. |
4000 | Too many login tries from this IP address. |
5003 | Write error. Try reopening the file. |