From a006f9a926f425cc7d75d820f8ca436508bc963c Mon Sep 17 00:00:00 2001 From: Bar Belity Date: Wed, 17 Apr 2019 18:43:55 +0300 Subject: [PATCH] Update README.md with temp-dir API --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index b4a0152f7..96b6b7366 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,15 @@ The project is still relatively new, and its APIs may therefore change frequently between releases. The library can be used as a go-module, which should be added to your project's go.mod file. As a reference you may look at [JFrog CLI](https://github.com/jfrog/jfrog-cli-go)'s [go.mod](https://github.com/jfrog/jfrog-cli-go/blob/master/go.mod) file, which uses this library as a dependency. +## General APIs +### Setting the temp dir +Several jfrog-client-go operations are storing data on the file-system. By default, the temporary +data will be stored inside 'os.TempDir()'. In order to set a different location for these files, +simply do the following: +``` + fileutils.SetTempDirBase(filepath.Join("my", "temp", "path") +``` + ## Artifactory APIs ### Creating a Service Manager #### Creating Artifactory Details