Returns the aliases specified for file
or nil
if not set.
Returns the chunk size specified for file
.
Returns the content type specified for file
or nil
if not set.
Returns the filename specified for file
or nil
if not set.
Returns the ID specified for file
.
Returns the length of file
in bytes.
Returns the MD5 specified for file
or nil
if not set.
Returns the metadata specified for file
or nil
if not set.
Returns the upload date in milliseconds since the UNIX epoch specified for file
.
Reads up to length
bytes from file
and returns a string or nil
if end-of-file was encountered.
On error, returns nil
and the error message.
Removes file
and returns true
. On error, returns nil
and the error message.
Saves modifications to file
to the server and returns true
. On error, returns nil
and the
error message.
Sets the file position indicator for file
to offset
relative to whence
(a string) that can be
one of the following:
set
: beginning of file (default);cur
: current position;end
: end of file;
Returns true
on success or false
on error.
Sets the aliases for file
. A call to file:save()
saves the change.
Sets the content type for file
. A call to file:save()
saves the change.
Sets the filename for file
. A call to file:save()
saves the change.
Sets the ID for file
. A call to file:save()
saves the change.
Sets the MD5 for file
. A call to file:save()
saves the change.
Sets the metadata for file
. A call to file:save()
saves the change.
Returns the current file position indicator for file
.
Writes data
to file
and returns the number of bytes written. On error, returns nil
and the
error message.
Returns the length of file
in bytes. Synonym for file:getLength()
.