Skip to content

Commit

Permalink
Merge branch 'release/v0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Gardner committed May 3, 2019
2 parents 2b48412 + c11afd3 commit 3ee2b98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FileDelta v0.2.0
FileDelta v0.3.0
================

1. Calculates the SHA-256 hash of a file
Expand Down
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"io/ioutil"
"net/url"
"os"
"path/filepath"

homedir "github.com/mitchellh/go-homedir"
)
Expand All @@ -23,7 +24,7 @@ import (
const (
AppDesc AppMetaData = "File change detection tool"
AppName AppMetaData = "FileDelta"
AppVersion AppMetaData = "0.2.0"
AppVersion AppMetaData = "0.3.0"
CLIName AppMetaData = "filedelta"
CommandCheck = "check"
CommandStore = "store"
Expand Down Expand Up @@ -73,6 +74,10 @@ var (
* FUNCTIONS
*/
func cacheFilePath(file string) string {
fileAbs, err := filepath.Abs(file)
if err == nil {
file = fileAbs
}
return fmt.Sprintf("%s/%s", cachePath, url.QueryEscape(file))
}

Expand Down

0 comments on commit 3ee2b98

Please # to comment.