diff options
Diffstat (limited to 'models/helper_directory.go')
-rw-r--r-- | models/helper_directory.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/helper_directory.go b/models/helper_directory.go index 8119ec91a3..aed2dbcf9b 100644 --- a/models/helper_directory.go +++ b/models/helper_directory.go @@ -13,6 +13,7 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" + "code.gitea.io/gitea/modules/util" ) // LocalCopyPath returns the local repository temporary copy path. @@ -41,7 +42,7 @@ func CreateTemporaryPath(prefix string) (string, error) { // RemoveTemporaryPath removes the temporary path func RemoveTemporaryPath(basePath string) error { if _, err := os.Stat(basePath); !os.IsNotExist(err) { - return os.RemoveAll(basePath) + return util.RemoveAll(basePath) } return nil } |