Pico data transfer with computer?

I have a tufty 2040 or pico lipo with a BME688 sensor attached. I want to log data and store it locally onto the pi. I want to have a feature where when I connect the pico or tufty to my laptop it automatically copies the CSV files and transfers it to a file directory or just downloads it. Is there any way to go about doing this?

This is possible, at least for Linux. Once you attach the mcu, a tty-device pops up and you can automatically start a script (search for fnotify or inotify). I don’t know about Windows, but I once read about a Go-library which runs on every platform. And Windows has grown up, so maybe there is some Power-Shell magic which does the trick.