protocol / beyond-bitswap

Other
34 stars 9 forks source link

TCP Server not working with files inputData when using directories #7

Closed adlrocha closed 3 years ago

adlrocha commented 3 years ago

The files.ToFile() function in tcp.goonly works when the input is a file, not a directory. We need to include additional logic so when a directory is detected, we generate it from the received fileNode. The files configuration will work when inside the directory there are only files but not directories.

https://github.com/adlrocha/beyond-bitswap/blob/develop/testbed/utils/tcp.go#L104