Expected behavior:
Siasync will skip files if they already exist on the Sia network.
Actual behavior:
Siasync is exiting with an error when the file already exists on the Sia network.
tbenz9@spartan1:~/go/src/github.com/tbenz9/siasync$ make
go build -o siasync *.go
tbenz9@spartan1:~/go/src/github.com/tbenz9/siasync$ ./siasync -subfolder test /tmp/siasync
2019/10/08 12:57:57 Connected to Sia 1.4.1.2-master
2019/10/08 12:57:57 29 contracts are ready for upload
2019/10/08 12:57:57 Uploading files missing from Sia
2019/10/08 12:57:57 error uploading /tmp/siasync/new-folder/file.txt: [POST request error; upload failed: [could not create a new sia file; a file already exists at that location]]
Steps to reproduce:
Build from master.
Run Siasync against a folder that has files in it. Wait for the uploads to begin.
Exit Siasync.
Restart Siasync agains the same folder, it will error out saying the files already exist.
Expected behavior: Siasync will skip files if they already exist on the Sia network.
Actual behavior: Siasync is exiting with an error when the file already exists on the Sia network.
Steps to reproduce: Build from master. Run Siasync against a folder that has files in it. Wait for the uploads to begin. Exit Siasync. Restart Siasync agains the same folder, it will error out saying the files already exist.