Bug or documentation issue

Just starting out? Need help? Post your questions and find answers here.
tua
User
User
Posts: 68
Joined: Sun Jul 23, 2023 8:49 pm
Location: BC, Canada

Bug or documentation issue

Post by tua »

Packer - AddPackFile()

From the help:

Code: Select all

Return value
Nonzero if the file has been successfully added to the packfile.
 If the file can't be compressed, it will be stored as is in the packfile.
I just noticed that this proc returns 0 for directories (even though they do get correctly stored).

Would you consider this to be a doc issue or a bug?
Quin
Addict
Addict
Posts: 1135
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Bug or documentation issue

Post by Quin »

Personally as a user I'd consider it to be a bug, typically zero return values are returned to indicate an error. Adding a directory to a pack isn't an error, at least in my eyes.
Post Reply