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
c5e1efb4
Commit
c5e1efb4
authored
Mar 27, 2023
by
AUTOMATIC1111
Committed by
GitHub
Mar 27, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8525 from bluelovers/pr/sort-001
feat: try sort as ignore-case
parents
b40538a7
d64ff424
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
extensions-builtin/Lora/lora.py
extensions-builtin/Lora/lora.py
+1
-1
modules/shared.py
modules/shared.py
+1
-1
No files found.
extensions-builtin/Lora/lora.py
View file @
c5e1efb4
...
@@ -347,7 +347,7 @@ def list_available_loras():
...
@@ -347,7 +347,7 @@ def list_available_loras():
glob
.
glob
(
os
.
path
.
join
(
shared
.
cmd_opts
.
lora_dir
,
'**/*.safetensors'
),
recursive
=
True
)
+
\
glob
.
glob
(
os
.
path
.
join
(
shared
.
cmd_opts
.
lora_dir
,
'**/*.safetensors'
),
recursive
=
True
)
+
\
glob
.
glob
(
os
.
path
.
join
(
shared
.
cmd_opts
.
lora_dir
,
'**/*.ckpt'
),
recursive
=
True
)
glob
.
glob
(
os
.
path
.
join
(
shared
.
cmd_opts
.
lora_dir
,
'**/*.ckpt'
),
recursive
=
True
)
for
filename
in
sorted
(
candidates
):
for
filename
in
sorted
(
candidates
,
key
=
str
.
lower
):
if
os
.
path
.
isdir
(
filename
):
if
os
.
path
.
isdir
(
filename
):
continue
continue
...
...
modules/shared.py
View file @
c5e1efb4
...
@@ -640,7 +640,7 @@ mem_mon.start()
...
@@ -640,7 +640,7 @@ mem_mon.start()
def
listfiles
(
dirname
):
def
listfiles
(
dirname
):
filenames
=
[
os
.
path
.
join
(
dirname
,
x
)
for
x
in
sorted
(
os
.
listdir
(
dirname
))
if
not
x
.
startswith
(
"."
)]
filenames
=
[
os
.
path
.
join
(
dirname
,
x
)
for
x
in
sorted
(
os
.
listdir
(
dirname
)
,
key
=
str
.
lower
)
if
not
x
.
startswith
(
"."
)]
return
[
file
for
file
in
filenames
if
os
.
path
.
isfile
(
file
)]
return
[
file
for
file
in
filenames
if
os
.
path
.
isfile
(
file
)]
...
...
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