X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=src%2Ftoss.go;h=b4363f713ea7856a16df74e26ff5a10ae0413ae6;hp=2fab0a2e8cb3a304323e2e65a6c5bfdf687430d5;hb=72f42f8288689ae89e021ba33ebca8d551a784d7;hpb=beefc4fd7137435caf9c653633ab938947df07f8 diff --git a/src/toss.go b/src/toss.go index 2fab0a2..b4363f7 100644 --- a/src/toss.go +++ b/src/toss.go @@ -24,6 +24,7 @@ import ( "errors" "fmt" "io" + "io/fs" "log" "mime" "os" @@ -356,7 +357,7 @@ func jobProcess( dstPathCtr := 0 for { if _, err = os.Stat(dstPath); err != nil { - if os.IsNotExist(err) { + if errors.Is(err, fs.ErrNotExist) { break } ctx.LogE("rx-stat", les, err, func(les LEs) string {