mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 10:50:34 +00:00
parent
632800eda7
commit
ef825bd242
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,9 @@ func Repos(ctx *context.Context) {
|
||||||
root := filepath.Join(models.UserPath(ctxUser.Name))
|
root := filepath.Join(models.UserPath(ctxUser.Name))
|
||||||
if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
|
if err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if os.IsNotExist(err) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if !info.IsDir() || path == root {
|
if !info.IsDir() || path == root {
|
||||||
|
|
Loading…
Reference in a new issue