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

@@ -75,11 +75,7 @@ func init() {
// NewAzBlobFs returns an AzBlobFs object that allows to interact with Azure Blob storage
func NewAzBlobFs(connectionID, localTempDir, mountPath string, config AzBlobFsConfig) (Fs, error) {
if localTempDir == "" {
if tempPath != "" {
localTempDir = tempPath
} else {
localTempDir = filepath.Clean(os.TempDir())
}
localTempDir = getLocalTempDir()
}
fs := &AzureBlobFs{
connectionID: connectionID,