dropbox: Make file exclusion error controllable with -q #287

This commit is contained in:
Nick Craig-Wood 2016-01-10 11:49:04 +00:00
parent af5f4ee724
commit c724d8f614

View File

@ -654,7 +654,7 @@ func (o *Object) Open() (in io.ReadCloser, err error) {
func (o *Object) Update(in io.Reader, modTime time.Time, size int64) error {
remote := o.remotePath()
if ignoredFiles.MatchString(remote) {
fs.ErrorLog(o, "File name disallowed - not uploading")
fs.Log(o, "File name disallowed - not uploading")
return nil
}
entry, err := o.fs.db.UploadByChunk(ioutil.NopCloser(in), int(uploadChunkSize), remote, true, "")