api.listdir: string conversion for offset/limit seem to be unnecessary