from fdfs_client.client import *
client = Fdfs_client("client.conf")
ret = client.download_to_buffer(afid, 3, 5)
print ret
Traceback (most recent call last):
File "atest.py", line 16, in
ret = client.download_to_buffer("tpupfs1/M00/00/00/CtwCr1WscGmAVmNjAAAAC5npnuQ0602068", 3, 5)
File "/Volumes/Hmwork/myfdfs/fdfs_client/client.py", line 405, in download_to_buffer
file_offset, download_bytes, \
UnboundLocalError: local variable 'file_offset' referenced before assignment
Traceback (most recent call last): File "atest.py", line 16, in
ret = client.download_to_buffer("tpupfs1/M00/00/00/CtwCr1WscGmAVmNjAAAAC5npnuQ0602068", 3, 5)
File "/Volumes/Hmwork/myfdfs/fdfs_client/client.py", line 405, in download_to_buffer
file_offset, download_bytes, \
UnboundLocalError: local variable 'file_offset' referenced before assignment