File permission in code

Permalink
Hi,

How do I set file permissions in code (using advanced permission)?

I create some pdf files and import them into C5 filemanager and add them to some filesets. That all works fine.
Now I want to set the file permissions to a specific user (uID) at import. How to?

S.

SnefIT