From 37673327001f3e355cf2819a8b0e6fd86a60891b Mon Sep 17 00:00:00 2001 From: Kurt Jensen Date: Fri, 12 Aug 2022 07:49:09 -0400 Subject: [PATCH] DEVEX-2135 Write temporary manifest to `$HOME/.dxfuse/` (#77) * Write temporary manifest to $HOME/.dxfuse/ * Bump version to v1.1.0 --- cli/main.go | 5 +++-- util.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/main.go b/cli/main.go index 023ab00..74a11ac 100644 --- a/cli/main.go +++ b/cli/main.go @@ -435,7 +435,8 @@ func startDaemonAndWaitForInitializationToComplete(cfg Config, logFile string) { } // This could be converted into a random temporary file to avoid collisions - fullManifestPath := "/tmp/dxfuse_manifest.json" + + fullManifestPath := filepath.Join(dxfuse.MakeFSBaseDir(), "dxfuse_manifest.json") err = ioutil.WriteFile(fullManifestPath, manifestJSON, 0644) if err != nil { fmt.Printf("Error writing out fully elaborated manifest to %s (%s)", @@ -490,7 +491,7 @@ func main() { flag.Parse() cfg := parseCmdLineArgs() validateConfig(cfg) - logFile := dxfuse.MakeFSBaseDir() + "/" + dxfuse.LogFile + logFile := filepath.Join(dxfuse.MakeFSBaseDir(), dxfuse.LogFile) fmt.Printf("The log file is located at %s\n", logFile) dxda.UserAgent = fmt.Sprintf("dxfuse/%s (%s)", dxfuse.Version, runtime.GOOS) diff --git a/util.go b/util.go index 6417b0d..d5d5040 100644 --- a/util.go +++ b/util.go @@ -30,7 +30,7 @@ const ( NumRetriesDefault = 10 InitialUploadPartSize = 16 * MiB MaxUploadPartSize = 700 * MiB - Version = "v1.0.1" + Version = "v1.1.0" ) const ( InodeInvalid = 0