Skip to content

Commit

Permalink
Made recursion alphabetic for re-producability
Browse files Browse the repository at this point in the history
  • Loading branch information
Yash-Handa committed Dec 28, 2020
1 parent 2443693 commit 8495741
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions internal/dir/dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ func New_Recussion(d *os.File) {
// at this point dd.print has sorted the children files
// but not using it instead printing children in directory order
temp := make([]string, len(dd.dirs))
sort.Strings(dd.dirs)
for i, v := range dd.dirs {
temp[i] = filepath.Join(d.Name(), v)
}
Expand Down
8 changes: 4 additions & 4 deletions testdata/logo-ls-Ra.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
נּtest.routes.tsx
testDir/

ﱮ testdata/dirEnv/Downloads:
ﱮ⠀.
ﱮ⠀..

ﱮ testdata/dirEnv/.privateDir:
ﱮ⠀.
ﱮ⠀..
ﳑ⠀1test.go
⠀2test.js
abc.txt

ﱮ testdata/dirEnv/Downloads:
ﱮ⠀.
ﱮ⠀..

ﱮ testdata/dirEnv/testDir:
ﱮ⠀.
ﱮ⠀..
Expand Down
8 changes: 4 additions & 4 deletions testdata/logo-ls-shRa.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
4.0K⠀נּtest.routes.tsx
4.0K⠀testDir/

ﱮ testdata/dirEnv/Downloads:
4.0K⠀ﱮ⠀.
4.0K⠀ﱮ⠀..

ﱮ testdata/dirEnv/.privateDir:
4.0K⠀ﱮ⠀.
4.0K⠀ﱮ⠀..
4.0K⠀ﳑ⠀1test.go
4.0K⠀⠀2test.js
4.0K⠀abc.txt

ﱮ testdata/dirEnv/Downloads:
4.0K⠀ﱮ⠀.
4.0K⠀ﱮ⠀..

ﱮ testdata/dirEnv/testDir:
4.0K⠀ﱮ⠀.
4.0K⠀ﱮ⠀..
Expand Down

0 comments on commit 8495741

Please sign in to comment.