Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewFileOnDisk ¶
CreateNewFileOnDisk attempts to create a new file in the user's current directory. If a file in that directory already exists with the same name, then it appends " (x)" to the file name, where x is the lowest revision number possible.
func IsFileAccessible ¶
IsFileAccessible checks if a file exists and if we have permissions to read it.
func ReceiveFileFromConn ¶
ReceiveFileFromConn reads a payload sent along the provided network connection and writes it to a file.
TODO: implement timeout and retry logic.
Types ¶
This section is empty.