Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
cb3f8ff5
Commit
cb3f8ff5
authored
May 11, 2023
by
catboxanon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix symlink scanning
parent
48354525
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/shared.py
modules/shared.py
+1
-1
modules/ui_extra_networks.py
modules/ui_extra_networks.py
+1
-1
No files found.
modules/shared.py
View file @
cb3f8ff5
...
@@ -741,7 +741,7 @@ def walk_files(path, allowed_extensions=None):
...
@@ -741,7 +741,7 @@ def walk_files(path, allowed_extensions=None):
if
allowed_extensions
is
not
None
:
if
allowed_extensions
is
not
None
:
allowed_extensions
=
set
(
allowed_extensions
)
allowed_extensions
=
set
(
allowed_extensions
)
for
root
,
_
,
files
in
os
.
walk
(
path
):
for
root
,
_
,
files
in
os
.
walk
(
path
,
followlinks
=
True
):
for
filename
in
files
:
for
filename
in
files
:
if
allowed_extensions
is
not
None
:
if
allowed_extensions
is
not
None
:
_
,
ext
=
os
.
path
.
splitext
(
filename
)
_
,
ext
=
os
.
path
.
splitext
(
filename
)
...
...
modules/ui_extra_networks.py
View file @
cb3f8ff5
...
@@ -90,7 +90,7 @@ class ExtraNetworksPage:
...
@@ -90,7 +90,7 @@ class ExtraNetworksPage:
subdirs
=
{}
subdirs
=
{}
for
parentdir
in
[
os
.
path
.
abspath
(
x
)
for
x
in
self
.
allowed_directories_for_previews
()]:
for
parentdir
in
[
os
.
path
.
abspath
(
x
)
for
x
in
self
.
allowed_directories_for_previews
()]:
for
root
,
dirs
,
_
in
os
.
walk
(
parentdir
):
for
root
,
dirs
,
_
in
os
.
walk
(
parentdir
,
followlinks
=
True
):
for
dirname
in
dirs
:
for
dirname
in
dirs
:
x
=
os
.
path
.
join
(
root
,
dirname
)
x
=
os
.
path
.
join
(
root
,
dirname
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment