I’m trying to implement an FTP backend for rclone (cfr. issue #540) but I’m having a few issues. I admit i am a go newbie, so I might be doing something really really stupid…
However, what happens is that when I try to list a directory the program seems stuck. The List() function terminates (as far as I can see), but then the code seems stuck in some sort of deadlock (strace says it’s stuck in a futex() call).
I’ve also tried with delve but I couldn’t really see what happens after the List() is called.
swift calls defer out.Finished() and you’ll need to do that too.
I had a quick look at your code - I suggest you move your mu into the Fs if it protects the ftp.ServeConn from concurrent use. Leaving it as a global var will mean trouble if the user decides to make two ftp remotes!
I think I have fixed most of the concurrency issues, but I cannot run tests. It seems that the “make test” target assumes there is a configuration somewhere, how can I run the tests?
I have issues with the tests. The main issue I guess is that I don’t know how to add a dependency from github.com/jlaffaye/ftp
How can I add the dependency?
Off topic but how does one get access to that data. I was trying to locate the 10000 genomes project but can't actually find anything but publications.