tbenz9 / siasync

miniscule utility to sync a folder with Sia
MIT License
67 stars 10 forks source link

add error check for if a file already exists #13

Closed MSevey closed 4 years ago

MSevey commented 4 years ago

This should close #12

tbenz9 commented 4 years ago

I don't think this handles if the folder already exists.


INFO[0000]/home/tbenz9/go/src/github.com/tbenz9/siasync/main.go:97 main.testConnection() Connected to Sia                              version=1.4.1.2-master
INFO[0000]/home/tbenz9/go/src/github.com/tbenz9/siasync/main.go:122 main.testConnection() contracts are ready for upload                contracts=28
INFO[0000]/home/tbenz9/go/src/github.com/tbenz9/siasync/siafolder.go:139 main.NewSiafolder() Uploading files missing from Sia
FATA[0000]/home/tbenz9/go/src/github.com/tbenz9/siasync/main.go:162 main.main() Could not create new Siafolder                error="error uploading /tmp/siasync/new-folder/file.txt: upload failed: [could not create a new sia file; a file already exists at that location]"```