improve temp dirs handling an some logs

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2023-10-17 18:06:52 +02:00
parent 254824b781
commit 6282f95bd3
11 changed files with 52 additions and 65 deletions

View File

@@ -70,11 +70,7 @@ func init() {
// NewGCSFs returns an GCSFs object that allows to interact with Google Cloud Storage
func NewGCSFs(connectionID, localTempDir, mountPath string, config GCSFsConfig) (Fs, error) {
if localTempDir == "" {
if tempPath != "" {
localTempDir = tempPath
} else {
localTempDir = filepath.Clean(os.TempDir())
}
localTempDir = getLocalTempDir()
}
var err error