In the documentation for ssh_sftp:pread/4 it says that Position = integer() I think the correct type is the same as in ssh_sftp:position Location = Offset | {bof, Offset} | {cur, Offset} | {eof, Offset} | bof | cur | eof Offset = int() /Anders