The FileDevice could be problematic.
It is more save to use the AsUSB library to detect and find the usb-stick and resulting path, which can be different depending on the type of the USB-stick.
See earlier post: Log File in a USB Drive - Ask Questions - B&R Community