mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-26 12:27:06 +00:00 
			
		
		
		
	Use filepath.Join instead of path.Join for file system file operations (#33978)
This commit is contained in:
		@@ -6,7 +6,6 @@ package repository
 | 
			
		||||
import (
 | 
			
		||||
	"fmt"
 | 
			
		||||
	"os"
 | 
			
		||||
	"path"
 | 
			
		||||
	"path/filepath"
 | 
			
		||||
 | 
			
		||||
	"code.gitea.io/gitea/modules/log"
 | 
			
		||||
@@ -19,7 +18,7 @@ func LocalCopyPath() string {
 | 
			
		||||
	if filepath.IsAbs(setting.Repository.Local.LocalCopyPath) {
 | 
			
		||||
		return setting.Repository.Local.LocalCopyPath
 | 
			
		||||
	}
 | 
			
		||||
	return path.Join(setting.AppDataPath, setting.Repository.Local.LocalCopyPath)
 | 
			
		||||
	return filepath.Join(setting.AppDataPath, setting.Repository.Local.LocalCopyPath)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// CreateTemporaryPath creates a temporary path
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user