FTP client with SDFat instead of SD

Hello, everyone

How do I send a file over FTP using SDFat library?
Reason - rest of the code uses SDFat, if SD included conflicts arise
Amon a few examples on the Internet only one works

https://playground.arduino.cc/Code/FTP/

I tried to rework the code but it’s so library-specific that I lack skill

What Arduino are you using? if the rest of you code uses SDfat and you expect to open another file for Ftp and uae Ethernet an Uno or similar may well struggle for memory.