README | 2 +- dep.go | 7 +++++++ usage.go | 2 +- diff --git a/README b/README index 6ea02609dee46d5c7cec9cbb40e629c367972a5ddb5c143fc4d98feeef98e275..21b111e479d341fdb30d1c7b2ccc8ec5a71162db5476c66c7f157059003f2eb0 100644 --- a/README +++ b/README @@ -28,7 +28,7 @@ problems with the authenticity on your side, then build it manually: > $ git clone git://git.cypherpunks.ru/goredo.git $ cd goredo - $ git tag -v v0.7.0 + $ git tag -v v0.7.1 $ git clone git://git.cypherpunks.ru/gorecfile.git $ ( cd gorecfile ; git tag -v v0.4.0 ) $ echo "replace go.cypherpunks.ru/recfile => `pwd`/gorecfile" >> go.mod diff --git a/dep.go b/dep.go index 4b1c3436bde66a1d430fc5aac158d2f6e442f0e86b5a6c0d2b987486215cba14..0496be964a3f8e4df1ecbdd3b7aed33e7d95759e3c923a115d0eae61d4756d60 100644 --- a/dep.go +++ b/dep.go @@ -101,6 +101,13 @@ if err != nil { return err } defer fd.Close() + fi, err := fd.Stat() + if err != nil { + return err + } + if fi.IsDir() { + return nil + } ts, err := fileCtime(fd) if err != nil { return err diff --git a/usage.go b/usage.go index acb4299d66677c19a16bc3ad0f2d9c0319f3cae93c0c5710ffce46808c4a9188..a011d4a7d0373c26bd9491d9517f488173386cb8aab43f718d607ac62546e5d3 100644 --- a/usage.go +++ b/usage.go @@ -26,7 +26,7 @@ "strings" ) const ( - Version = "0.7.0" + Version = "0.7.1" Warranty = `This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.