pylnk decides on the entry types by checking actual files on the filesystem. This doesn't work obviously if you create files from Linux for a Windows machine. It wrongly sets the entry type to FILE, even though they should be FOLDER.
I already fixed the code and will create a pull request. I just change the logic to always set the last segment to FILE.