Python SDK record length problem

Plug-in and third party software discussion.
Post Reply
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

Python SDK record length problem

Post by sk2107 »

Hello,

Recently I started using everything with python, after some testing I found that if the full path length exceeds 260 characters, it will be truncated to 260 characters.

Any suggestions please?

Thank you
Last edited by NotNull on Sun Apr 14, 2024 3:12 pm, edited 1 time in total.
Reason: Moved from Support forum
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

Re: Python SDK record length problem

Post by void »

When you create your filename buffer, use a larger buffer size:

Code: Select all

filename = ctypes.create_unicode_buffer(260)
to:

Code: Select all

filename = ctypes.create_unicode_buffer(32768)
sk2107
Posts: 325
Joined: Sun Aug 07, 2022 8:48 pm

Re: Python SDK record length problem

Post by sk2107 »

Thanks a lot. It is working fine now.

Best Regards
Post Reply