Open Gorparth opened 3 years ago
On which line? It was hard to understand what you're saying.
My question is which function in onedrivesdk will give output same as api.get() method.
the .download() function is returning full file at once, but i want it in chunks as api.get method is giving.
On which line? It was hard to understand what you're saying.
line number 98 in onedrivefsnew.txt in this file i've tried different methods but none of them worked
and what i want is in onedrivefsold.txt line number 191 onedrivefsold.txt onedrivefsnew.txt
Try playing around with autocomplete. That's how I find most functions in this library. BTW this repo is abandoned.
I'm writing onedrivefs in python3 this onedrive sdk, i'm referring existing code of onedrive-fuse-fs in that read fuction has used this code def read(self, path, size, offset): path_id = self._resolve(path) return self.api.get(path_id, byte_range='{}-{}'.format(offset, offset+size))
i want to implement similar thing i've used download function from http-provider file that look like :
def read(self, path, length, offset): return authed_usr.client.item(id=authed_usr.folder[path]).download(path)
i'm downloading same file in that folder and folder dictionary gives the item id, but its not working as expected invalid arguement and File type unknown (application/octet-stream) is not supported such errors showing up.
i'm attaching that file where it is implemented. onedrivefs.txt