mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix stack overflow creating windows network folders (#2886)
This commit is contained in:
@@ -216,7 +216,7 @@ func (m *schema32Migrator) deletePlaceholderFolder(ctx context.Context) error {
|
||||
func (m *schema32Migrator) createFolderHierarchy(p string) (*int, sql.NullInt64, error) {
|
||||
parent := filepath.Dir(p)
|
||||
|
||||
if parent == "." || parent == string(filepath.Separator) {
|
||||
if parent == p {
|
||||
// get or create this folder
|
||||
return m.getOrCreateFolder(p, nil, sql.NullInt64{})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user