Page 1 of 1

Python SDK record length problem

Posted: Sun Apr 14, 2024 2:33 pm
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

Re: Python SDK record length problem

Posted: Mon Apr 15, 2024 5:15 am
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)

Re: Python SDK record length problem

Posted: Mon Apr 15, 2024 12:07 pm
by sk2107
Thanks a lot. It is working fine now.

Best Regards