From 94861a81d17bdf76b7166c6f5c7fd7010a5e2278 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Fri, 8 Jan 2021 02:16:05 +0900 Subject: [PATCH] sorting.. fix --- distribusi/distribusi.py | 2 +- sample/notes/20210107T184852+0900_또다른 경우/2.txt | 1 + sample/notes/20210107T184852+0900_또다른 경우/3.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 sample/notes/20210107T184852+0900_또다른 경우/2.txt create mode 100644 sample/notes/20210107T184852+0900_또다른 경우/3.txt diff --git a/distribusi/distribusi.py b/distribusi/distribusi.py index 148c75a..e961189 100644 --- a/distribusi/distribusi.py +++ b/distribusi/distribusi.py @@ -113,7 +113,7 @@ def write_index(args,index, html, html_head, html_footer): def render_dir(args, root): html = [] - for name in os.listdir(root): + for name in sorted(os.listdir(root)): if args.no_hidden: if name.startswith('.'): diff --git a/sample/notes/20210107T184852+0900_또다른 경우/2.txt b/sample/notes/20210107T184852+0900_또다른 경우/2.txt new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/sample/notes/20210107T184852+0900_또다른 경우/2.txt @@ -0,0 +1 @@ +2 diff --git a/sample/notes/20210107T184852+0900_또다른 경우/3.txt b/sample/notes/20210107T184852+0900_또다른 경우/3.txt new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/sample/notes/20210107T184852+0900_또다른 경우/3.txt @@ -0,0 +1 @@ +3