FileLink

FileLink is deprecated (from R107), you should use File or Link instead.

The expected options differ when you are creating a file from when you're creating a link, therefore they're specified for both situations.