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

@@ -82,11 +82,7 @@ func init() {
// object storage
func NewS3Fs(connectionID, localTempDir, mountPath string, s3Config S3FsConfig) (Fs, error) {
if localTempDir == "" {
if tempPath != "" {
localTempDir = tempPath
} else {
localTempDir = filepath.Clean(os.TempDir())
}
localTempDir = getLocalTempDir()
}
fs := &S3Fs{
connectionID: connectionID,